} else { #ifdef USE_RWLOCK NSSRWLock_UnlockRead(dpcache->lock); #else PR_Unlock(dpcache->lock); #endif }
void ReleaseDPCache(CRLDPCache* dpcache, PRBool writeLocked){    if (!dpcache) {        return;    }    if (PR_TRUE == writeLocked) {#ifdef USE_RWLOCK        NSSRWLock_UnlockWrite(dpcache->lock);#else        PR_Unlock(dpcache->lock);#endif    } else {#ifdef USE_RWLOCK        NSSRWLock_UnlockRead(dpcache->lock);#else        PR_Unlock(dpcache->lock);#endif    }}