Now gives its recursive lock a name and checks its return code.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3679 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-06-27 03:25:24 +00:00
parent b652f04990
commit 783f7b5ccd

View File

@ -762,7 +762,8 @@ nextModuleImage:
status_t
module_init(kernel_args *ka, module_info **sys_module_headers)
{
recursive_lock_create(&gModulesLock);
if (recursive_lock_init(&gModulesLock, "modules rlock") < B_OK)
return B_ERROR;
gModulesHash = hash_init(MODULE_HASH_SIZE, 0, module_compare, module_hash);
if (gModulesHash == NULL)