Changeset 122 in libcf for trunk/include/cf_thread.h
- Timestamp:
- 06/12/13 11:05:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf_thread.h
r121 r122 15 15 typedef int (* CF_Thread_Function) (void *); 16 16 17 /** 스레드 아이디*/17 /** 스레드 컨텍스트 */ 18 18 typedef void * CF_Thread_Ctx; 19 19 20 /** 뮤텍스 아이디*/20 /** 뮤텍스 컨텍스트 */ 21 21 typedef void * CF_Mutex_Ctx; 22 22 … … 26 26 27 27 CF_EXPORT int 28 CF_Thread_Create (CF_Thread_Ctx * threadID,28 CF_Thread_CreateCtx (CF_Thread_Ctx * ctx, 29 29 CF_Thread_Function callback, 30 30 void * arg); 31 31 32 32 CF_EXPORT int 33 CF_Thread_ DestroyCtx (CF_Thread_Ctx * threadID);33 CF_Thread_Start (CF_Thread_Ctx ctx); 34 34 35 35 CF_EXPORT int 36 CF_Thread_ Join (CF_Thread_Ctx * threadID);36 CF_Thread_DestroyCtx (CF_Thread_Ctx ctx); 37 37 38 38 CF_EXPORT int 39 CF_ Mutex_CreateCtx (CF_Mutex_Ctx * mutex);39 CF_Thread_Join (CF_Thread_Ctx ctx); 40 40 41 41 CF_EXPORT int 42 CF_Mutex_ DestoryCtx (CF_Mutex_Ctx * mutex);42 CF_Mutex_CreateCtx (CF_Mutex_Ctx * ctx); 43 43 44 44 CF_EXPORT int 45 CF_Mutex_ Lock (CF_Mutex_Ctx * mutex);45 CF_Mutex_DestoryCtx (CF_Mutex_Ctx ctx); 46 46 47 47 CF_EXPORT int 48 CF_Mutex_Unlock (CF_Mutex_Ctx * mutex); 48 CF_Mutex_Lock (CF_Mutex_Ctx ctx); 49 50 CF_EXPORT int 51 CF_Mutex_Unlock (CF_Mutex_Ctx ctx); 49 52 50 53 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.