NSPR API Reference

Introduction to NSPR

  • NSPR_Naming_Conventions

  • NSPR_Threads

    • Thread_Scheduling

      • Setting_Thread_Priorities

      • Preempting_Threads

      • Interrupting_Threads

  • NSPR_Thread_Synchronization

    • Locks_and_Monitors

    • Condition_Variables

  • NSPR_Sample_Code

NSPR Types

  • Calling_Convention_Types

  • Algebraic_Types

    • 8-.2C_16-.2C_and_32-bit_Integer_Types

      • Signed_Integers

      • Unsigned_Integers

    • 64-bit_Integer_Types

    • Floating-Point_Number_Type

    • Native_OS_Integer_Types

  • Miscellaneous_Types

    • Size_Type

    • Pointer_Difference_Types

    • Boolean_Types

    • Status_Type_for_Return_Values

Threads

  • Threading_Types_and_Constants

  • Threading_Functions

    • Creating.2C_Joining.2C_and_Identifying_Threads

    • Controlling_Thread_Priorities

    • Controlling_Per-Thread_Private_Data

    • Interrupting_and_Yielding

    • Setting_Global_Thread_Concurrency

    • Getting_a_Thread.27s_Scope

Process Initialization

  • Identity_and_Versioning

    • Name_and_Version_Constants

  • Initialization_and_Cleanup

  • Module_Initialization

Locks

  • Lock_Type

  • Lock_Functions

Condition_Variables

  • Condition_Variable_Type

  • Condition_Variable_Functions

Monitors

  • Monitor_Type

  • Monitor_Functions

Cached Monitors

  • Cached_Monitors_Functions

I/O Types

  • Directory_Type

  • File_Descriptor_Types

  • File_Info_Types

  • Network_Address_Types

  • Types_Used_with_Socket_Options_Functions

  • Type_Used_with_Memory-Mapped_I.2FO

  • Offset_Interpretation_for_Seek_Functions

I/O Functions

  • Functions_that_Operate_on_Pathnames

  • Functions_that_Act_on_File_Descriptors

  • Directory_I.2FO_Functions

  • Socket_Manipulation_Functions

  • Converting_Between_Host_and_Network_Addresses

  • Memory-Mapped_I.2FO_Functions

  • Anonymous_Pipe_Function

  • Polling_Functions

  • Pollable_Events

  • Manipulating_Layers

Network Addresses

  • Network_Address_Types_and_Constants

  • Network_Address_Functions

Atomic Operations

Interval Timing

  • Interval_Time_Type_and_Constants

  • Interval_Functions

Date and Time

  • Types_and_Constants

  • Time_Parameter_Callback_Functions

  • Functions

Memory_Management Operations

  • Memory_Allocation_Functions

  • Memory_Allocation_Macros

String Operations

Floating Point Number to String Conversion

Linked Lists

Dynamic Library Linking

Process Management and Interprocess Communication

  • Process_Management_Types_and_Constants

  • Process_Management_Functions

    • Setting_the_Attributes_of_a_New_Process

    • Creating_and_Managing_Processes

Logging

Named Shared Memory

  • Shared_Memory_Protocol

  • Named_Shared_Memory_Functions

Anonymous Shared_Memory

  • Anonymous_Memory_Protocol

  • Anonymous_Shared_Memory_Functions

IPC Semaphores

  • IPC_Semaphore_Functions

Thread Pools

  • Thread_Pool_Types

  • Thread_Pool_Functions

Random Number Generator

  • Random_Number_Generator_Function

Hash Tables

  • Hash_Table_Types_and_Constants

  • Hash_Table_Functions

NSPR Error Handling

  • Error_Type

  • Error_Functions

  • Error_Codes