Lines Matching defs:lock
47 #define CHECK_SERVICE_USE_OK() if (!lock) return NS_ERROR_NOT_INITIALIZED
48 #define CHECK_MANAGER_USE_OK() if (!mService || !nsExceptionService::lock) return NS_ERROR_NOT_INITIALIZED
167 PRLock *nsExceptionService::lock = PR_FALSE;
190 lock = PR_NewLock();
191 NS_WARN_IF_FALSE(lock, "Error allocating ExceptionService lock");
212 if (!lock) {
228 if (lock) {
230 PR_DestroyLock(lock);
231 lock = nsnull;
347 PR_Lock(lock);
351 PR_Unlock(lock);
368 PR_Lock(lock);
370 PR_Unlock(lock);
375 PR_Lock(lock);
378 PR_Unlock(lock);