diff options
author | Brian Paul <[email protected]> | 2001-11-02 00:57:04 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-11-02 00:57:04 +0000 |
commit | dc31d67c0e48a8380baad738bec2673416c44911 (patch) | |
tree | 2e9607a93e3063f0173924c5c21367cbc3756601 /src/mesa | |
parent | acf0c0a1e1a5dd3e99e4ae41ae81a67d2b2864b7 (diff) |
init the hash table mutex in _mesa_NewHashTable (Won-Suk Chun)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/hash.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index 0d73fc9fd21..03050e7fc69 100644 --- a/src/mesa/main/hash.c +++ b/src/mesa/main/hash.c @@ -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; } |