Back to index

lightning-sunbird  0.9+nobinonly
Functions
os2sem.c File Reference
#include "primpl.h"

Go to the source code of this file.

Functions

void _PR_MD_NEW_SEM (_MDSemaphore *md, PRUintn value)
void _PR_MD_DESTROY_SEM (_MDSemaphore *md)
PRStatus _PR_MD_TIMED_WAIT_SEM (_MDSemaphore *md, PRIntervalTime ticks)
PRStatus _PR_MD_WAIT_SEM (_MDSemaphore *md)
void _PR_MD_POST_SEM (_MDSemaphore *md)

Function Documentation

Definition at line 59 of file os2sem.c.

{
   int rv;
   rv = DosCloseEventSem(md->sem);
   PR_ASSERT(rv == NO_ERROR);

}

Here is the caller graph for this function:

void _PR_MD_NEW_SEM ( _MDSemaphore md,
PRUintn  value 
)

Definition at line 47 of file os2sem.c.

{
   int rv;

    /* Our Sems don't support a value > 1 */
    PR_ASSERT(value <= 1);

    rv = DosCreateEventSem(NULL, &md->sem, 0, 0);
    PR_ASSERT(rv == NO_ERROR);
}

Here is the caller graph for this function:

Definition at line 86 of file os2sem.c.

{
   int rv;
   rv = DosPostEventSem(md->sem);
   PR_ASSERT(rv == NO_ERROR); 
}

Definition at line 68 of file os2sem.c.

{
    int rv;
    rv = DosWaitEventSem(md->sem, PR_IntervalToMilliseconds(ticks));

    if (rv == NO_ERROR)
        return PR_SUCCESS;
    else
        return PR_FAILURE;
}

Here is the caller graph for this function:

Definition at line 80 of file os2sem.c.

Here is the call graph for this function:

Here is the caller graph for this function: