Back to index

lightning-sunbird  0.9+nobinonly
Functions
pk11list.c File Reference
#include "seccomon.h"
#include "nssilock.h"
#include "secmod.h"
#include "secmodi.h"
#include "secmodti.h"
#include "nssrwlk.h"

Go to the source code of this file.

Functions

SECMODListLockSECMOD_NewListLock ()
void SECMOD_DestroyListLock (SECMODListLock *lock)
void SECMOD_GetReadLock (SECMODListLock *modLock)
void SECMOD_ReleaseReadLock (SECMODListLock *modLock)
void SECMOD_GetWriteLock (SECMODListLock *modLock)
void SECMOD_ReleaseWriteLock (SECMODListLock *modLock)
void SECMOD_RemoveList (SECMODModuleList **parent, SECMODModuleList *child)
void SECMOD_AddList (SECMODModuleList *parent, SECMODModuleList *child, SECMODListLock *lock)

Function Documentation

void SECMOD_AddList ( SECMODModuleList *  parent,
SECMODModuleList *  child,
SECMODListLock lock 
)

Definition at line 116 of file pk11list.c.

{
    if (lock) { SECMOD_GetWriteLock(lock); }

    child->next = parent->next;
    parent->next = child;

   if (lock) { SECMOD_ReleaseWriteLock(lock); }
}

Here is the caller graph for this function:

Definition at line 59 of file pk11list.c.

Here is the caller graph for this function:

Definition at line 69 of file pk11list.c.

{
    NSSRWLock_LockRead(modLock);
}

Here is the caller graph for this function:

Definition at line 86 of file pk11list.c.

{
    NSSRWLock_LockWrite(modLock);
}

Here is the caller graph for this function:

Definition at line 51 of file pk11list.c.

{
    return NSSRWLock_New( 10, "moduleListLock");
}

Here is the caller graph for this function:

Definition at line 77 of file pk11list.c.

{
    NSSRWLock_UnlockRead(modLock);
}

Here is the caller graph for this function:

Definition at line 96 of file pk11list.c.

{
    NSSRWLock_UnlockWrite(modLock);
}

Here is the caller graph for this function:

void SECMOD_RemoveList ( SECMODModuleList **  parent,
SECMODModuleList *  child 
)

Definition at line 106 of file pk11list.c.

{
    *parent = child->next;
    child->next = NULL;
}

Here is the caller graph for this function: