projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df1a0cf
)
Fix wrapper function for creating standard mutex. Fix destruction of Mutex attribute.
author
Dennis Schafroth
<dennis@indexdata.com>
Sat, 7 Aug 2010 10:00:22 +0000
(12:00 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Sat, 7 Aug 2010 10:00:22 +0000
(12:00 +0200)
src/mutex.c
patch
|
blob
|
history
diff --git
a/src/mutex.c
b/src/mutex.c
index
d1cd50e
..
85b0c7b
100644
(file)
--- a/
src/mutex.c
+++ b/
src/mutex.c
@@
-56,7
+56,7
@@
void yaz_mutex_create_attr(YAZ_MUTEX *p, int flags) {
}
void yaz_mutex_create(YAZ_MUTEX *p) {
- yaz_mutex_create(YAZ_MUTEX *p, 0);
+ yaz_mutex_create_attr(p, 0);
}
void yaz_mutex_set_name(YAZ_MUTEX p, int log_level, const char *name)
@@
-148,7
+148,7
@@
void yaz_mutex_destroy(YAZ_MUTEX *p)
#ifdef WIN32
DeleteCriticalSection(&(*p)->handle);
#elif YAZ_POSIX_THREADS
- pthread_mutexattr_destroy(&(*p)->attr);
+ pthread_mutexattr_destroy((*p)->attr);
free((*p)->attr);
pthread_mutex_destroy(&(*p)->handle);
#endif