Changeset 137 for trunk/src/sh_mem.c
- Timestamp:
- Oct 28, 2007, 1:17:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_mem.c
r134 r137 20 20 #include "config_xor.h" 21 21 22 /* With glibc, _XOPEN_SOURCE 500 is required for 23 * pthread_mutexattr_settype/PTHREAD_MUTEX_RECURSIVE 24 */ 25 #if defined(HAVE_PTHREAD) && defined(MEM_DEBUG) 26 #define _XOPEN_SOURCE 500 27 #endif 22 28 23 29 #include <stdio.h> … … 108 114 static pthread_mutex_t mutex_mem; 109 115 110 static intinitialize_mem(void)116 static void initialize_mem(void) 111 117 { 112 118 pthread_mutexattr_t mta; … … 114 120 pthread_mutex_init(&mutex_mem, &mta); 115 121 pthread_mutexattr_destroy(&mta); 116 return 0;122 return; 117 123 } 118 124 #define MEM_MUTEX_INIT (void) pthread_once(&mem_is_initialized, initialize_mem)
Note:
See TracChangeset
for help on using the changeset viewer.