Changeset 142 in libcf for trunk/src/cf_thread.c
- Timestamp:
- 07/19/13 10:46:16 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_thread.c
r128 r142 15 15 # include <process.h> 16 16 # define THREAD_TYPE HANDLE 17 # define MUTEX_TYPE HANDLE18 17 # define THREAD_RETURN unsigned long /**< 스레드 워커 함수 반환 형 */ 19 18 # define THREAD_CALL __stdcall … … 21 20 # include <pthread.h> 22 21 # define THREAD_TYPE pthread_t 23 # define MUTEX_TYPE pthread_mutex_t24 22 # define THREAD_RETURN void * /**< 스레드 워커 함수 반환 형 */ 25 23 # define THREAD_CALL … … 38 36 void * arg; 39 37 } CF_THREAD_CTX; 40 41 static int42 CF_Thread_Local_Close (THREAD_TYPE tid)43 {44 #if defined(_WIN32) || defined(_WIN64)45 if (tid == NULL)46 return CF_ERROR_THREAD_INVALID_ARGS;47 48 CloseHandle (tid);49 #endif50 51 return CF_OK;52 }53 38 54 39 /** … … 159 144 ASSERT_THREAD_CTX (ctx); 160 145 161 CF_Thread_Local_Close (context->tid); 146 #if defined(_WIN32) || defined(_WIN64) 147 if (context->tid == NULL) 148 return CF_ERROR_THREAD_INVALID_ARGS; 149 150 CloseHandle (context->tid); 151 #endif 162 152 free (context); 163 153
Note:
See TracChangeset
for help on using the changeset viewer.