Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
bmisc.c File Reference
#include "primpl.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

void _MD_cleanup_before_exit (void)
void _MD_exit (PRIntn status)
void _MD_early_init (void)
void _MD_final_init (void)
void _MD_AtomicInit (void)
PRInt32 _MD_AtomicAdd (PRInt32 *ptr, PRInt32 val)
PRInt32 _MD_AtomicIncrement (PRInt32 *val)
PRInt32 _MD_AtomicDecrement (PRInt32 *val)
PRInt32 _MD_AtomicSet (PRInt32 *val, PRInt32 newval)

Variables

PRLock_connectLock = NULL
PRUint32 connectCount = 0
ConnectListNode connectList [64]
static PRLockmonitor = NULL

Function Documentation

PRInt32 _MD_AtomicAdd ( PRInt32 ptr,
PRInt32  val 
)

Definition at line 93 of file bmisc.c.

{
    return( ( atomic_add( (long *)ptr, val ) ) + val );
}

Definition at line 105 of file bmisc.c.

{
    return( ( atomic_add( (long *)val, -1 ) ) - 1 );
}

Definition at line 99 of file bmisc.c.

{
    return( ( atomic_add( (long *)val, 1 ) ) + 1 );
}

Definition at line 80 of file bmisc.c.

{
    if (monitor == NULL) {
        monitor = PR_NewLock();
    }
}

Here is the call graph for this function:

PRInt32 _MD_AtomicSet ( PRInt32 val,
PRInt32  newval 
)

Definition at line 111 of file bmisc.c.

Here is the call graph for this function:

Definition at line 51 of file bmisc.c.

{
}

Definition at line 62 of file bmisc.c.

{
}
void _MD_exit ( PRIntn  status)

Definition at line 56 of file bmisc.c.

{
    exit(status);
}

Here is the call graph for this function:

Definition at line 69 of file bmisc.c.

{
    _connectLock = PR_NewLock();
    PR_ASSERT(NULL != _connectLock); 
#ifndef BONE_VERSION   
    /* Workaround for nonblocking connects under net_server */
    connectCount = 0;
#endif
}

Here is the call graph for this function:


Variable Documentation

Definition at line 42 of file bmisc.c.

Definition at line 46 of file bmisc.c.

ConnectListNode connectList[64]

Definition at line 47 of file bmisc.c.

PRLock* monitor = NULL [static]

Definition at line 66 of file bmisc.c.