if (PR_TRUE == writeLocked) {  } else { PRBool readlocked = PR_TRUE;  DPCache_LockWrite(); DPCache_Empty(cache); DPCache_Cleanup(cache); DPCache_UnlockWrite(); }
readlocked = (writeLocked == PR_TRUE? PR_FALSE : PR_TRUE); DPCache_LockWrite(); cache->refresh = PR_TRUE; DPCache_UnlockWrite();
void CERT_CRLCacheRefreshIssuer(CERTCertDBHandle* dbhandle, SECItem* crlKey){    CRLDPCache* cache = NULL;    SECStatus rv = SECSuccess;    PRBool writeLocked = PR_FALSE;    (void) dbhandle; /* silence compiler warnings */    rv = AcquireDPCache(NULL, crlKey, NULL, 0, NULL, &cache, &writeLocked);    if (SECSuccess != rv)    {        return;    }    if (PR_TRUE == writeLocked)    {        /* the DPCache is write-locked. This means that the issuer was just           added to the CRL cache. There is no need to do anything */    }    else    {        PRBool readlocked = PR_TRUE;        /* we need to invalidate the DPCache here */        DPCache_LockWrite();        DPCache_Empty(cache);        DPCache_Cleanup(cache);        DPCache_UnlockWrite();    }    ReleaseDPCache(cache, writeLocked);    return;}