Changeset 142 in libcf for trunk/src/cf_mutex.c
- Timestamp:
- 07/19/13 10:46:16 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_mutex.c
r128 r142 29 29 MUTEX_TYPE mid; 30 30 } CF_MUTEX_CTX; 31 32 static int33 CF_Mutex_Local_Close (MUTEX_TYPE mid)34 {35 #if defined(_WIN32) || defined(_WIN64)36 if (mid == NULL)37 return CF_ERROR_MUTEX_INVALID_ARGS;38 39 CloseHandle (mid);40 #else41 pthread_mutex_destroy (&mid);42 #endif43 44 return CF_OK;45 }46 31 47 32 /** … … 105 90 ASSERT_MUTEX_CTX (ctx); 106 91 107 CF_Mutex_Local_Close (context->mid); 92 #if defined(_WIN32) || defined(_WIN64) 93 if (context->mid == NULL) 94 return CF_ERROR_MUTEX_INVALID_ARGS; 95 96 CloseHandle (context->mid); 97 #else 98 pthread_mutex_destroy (&context->mid); 99 #endif 100 108 101 free (context); 109 102
Note:
See TracChangeset
for help on using the changeset viewer.