Commit b2391c27 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Initialise and deinitialise the file_lock_mutex

parent c91e9cf1
......@@ -52,6 +52,9 @@ initFileLocking(void)
{
obj_hash = allocHashTable_(hashLock, cmpLocks);
fd_hash = allocHashTable(); /* ordinary word-based table */
#ifdef THREADED_RTS
initMutex(&file_lock_mutex);
#endif
}
static void
......@@ -65,6 +68,9 @@ freeFileLocking(void)
{
freeHashTable(obj_hash, freeLock);
freeHashTable(fd_hash, NULL);
#ifdef THREADED_RTS
closeMutex(&file_lock_mutex);
#endif
}
int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment