msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DOSFSRSEM (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSSEMAPHORES
 
typedef struct _DOSFSRSEM {    /* dosfsrs */
    USHORT cb;
    PID    pid;
    TID    tid;
    USHORT cUsage;
    USHORT client;
    ULONG  sem;
} DOSFSRSEM;
 
The DOSFSRSEM structure contains information for a fast-safe RAM semaphore.
 
Field   Description
────────────────────────────────────────────────────────────────────────────
 
cb      Specifies the size of the structure (in bytes). Programs written in
        the C language should use the sizeof operator to set this field.
 
pid     Specifies the process identifier of the process that owns the
        semaphore. If this field is zero, the semaphore is not owned.
 
tid     Specifies the thread identifier of the thread that owns the
        semaphore.
 
cUsage  Specifies the number of times the owner has issued a
        DosFSRamSemRequest function without a corresponding
        DosFSRamSemClear function.
 
client  Specifies any owner-recorded information that may be needed through
        maintain the semaphore and the resource being managed.
 
sem     Specifies the RAM semaphore to be used in this request.
 
See Also
 
DosFSRamSemClear, DosFSRamSemRequest