if(aLock) PR_AtomicIncrement( &g_LockCount ); else PR_AtomicDecrement( &g_LockCount );
NS_IMETHODIMP nsNativeDetectorFactory::LockFactory(PRBool aLock){  if(aLock)     PR_AtomicIncrement( &g_LockCount );  else     PR_AtomicDecrement( &g_LockCount );  return NS_OK;}