return (secmod_PrivateModuleCount == 0) ? SECSuccess : SECFailure;
if (secmod_PrivateModuleCount) { PORT_SetError(SEC_ERROR_BUSY); return SECFailure; } return SECSuccess;
SECMOD_Shutdown() {    /* destroy the lock */    if (moduleLock) {	SECMOD_DestroyListLock(moduleLock);	moduleLock = NULL;    }    /* free the internal module */    if (internalModule) {	SECMOD_DestroyModule(internalModule);	internalModule = NULL;    }    /* free the default database module */    if (defaultDBModule) {	SECMOD_DestroyModule(defaultDBModule);	defaultDBModule = NULL;    }	    /* destroy the list */    if (modules) {	SECMOD_DestroyModuleList(modules);	modules = NULL;    }       if (modulesDB) {	SECMOD_DestroyModuleList(modulesDB);	modulesDB = NULL;    }    if (modulesUnload) {	SECMOD_DestroyModuleList(modulesUnload);	modulesUnload = NULL;    }    /* make all the slots and the lists go away */    PK11_DestroySlotLists();    nss_DumpModuleLog();#ifdef DEBUG    if (PR_GetEnv("NSS_STRICT_SHUTDOWN")) {	PORT_Assert(secmod_PrivateModuleCount == 0);    }#endif    return (secmod_PrivateModuleCount == 0) ? SECSuccess : SECFailure;}