init the hash table mutex in _mesa_NewHashTable (Won-Suk Chun)

This commit is contained in:
Brian Paul 2001-11-02 00:57:04 +00:00
parent acf0c0a1e1
commit dc31d67c0e
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $Id: hash.c,v 1.10 2001/03/12 00:48:38 gareth Exp $ */
/* $Id: hash.c,v 1.11 2001/11/02 00:57:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@ -64,7 +64,11 @@ struct _mesa_HashTable {
*/
struct _mesa_HashTable *_mesa_NewHashTable(void)
{
return CALLOC_STRUCT(_mesa_HashTable);
struct _mesa_HashTable *table = CALLOC_STRUCT(_mesa_HashTable);
if (table) {
_glthread_INIT_MUTEX(table->Mutex);
}
return table;
}