PRBool freeit = PR_FALSE;  PK11_USE_THREADS(PZ_Lock(slot->refLock);) if (slot->refCount-- == 1) freeit = PR_TRUE; PK11_USE_THREADS(PZ_Unlock(slot->refLock);)  if (freeit) PK11_DestroySlot(slot);
if (PR_AtomicDecrement(&slot->refCount) == 0) { PK11_DestroySlot(slot); }
PK11_FreeSlot(PK11SlotInfo *slot){    PRBool freeit = PR_FALSE;    PK11_USE_THREADS(PZ_Lock(slot->refLock);)    if (slot->refCount-- == 1) freeit = PR_TRUE;    PK11_USE_THREADS(PZ_Unlock(slot->refLock);)    if (freeit) PK11_DestroySlot(slot);}