projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acf0c0a
)
init the hash table mutex in _mesa_NewHashTable (Won-Suk Chun)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 2 Nov 2001 00:57:04 +0000
(
00:57
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 2 Nov 2001 00:57:04 +0000
(
00:57
+0000)
src/mesa/main/hash.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/hash.c
b/src/mesa/main/hash.c
index 0d73fc9fd21e73f2fcdba5a33b4ead434441ce00..03050e7fc6966a61cbecb87567e8954c687d5493 100644
(file)
--- a/
src/mesa/main/hash.c
+++ b/
src/mesa/main/hash.c
@@
-1,4
+1,4
@@
-/* $Id: hash.c,v 1.1
0 2001/03/12 00:48:38 gareth
Exp $ */
+/* $Id: hash.c,v 1.1
1 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;
}