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:
parent
b652f04990
commit
783f7b5ccd
@ -762,7 +762,8 @@ nextModuleImage:
|
|||||||
status_t
|
status_t
|
||||||
module_init(kernel_args *ka, module_info **sys_module_headers)
|
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);
|
gModulesHash = hash_init(MODULE_HASH_SIZE, 0, module_compare, module_hash);
|
||||||
if (gModulesHash == NULL)
|
if (gModulesHash == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user