Changeset 126 in libcf for trunk/include/cf_thread.h
- Timestamp:
- 06/14/13 13:41:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf_thread.h
r122 r126 3 3 * \author myusgun <myusgun@gmail.com> 4 4 * 5 * \brief 멀티스레드 및 뮤텍스지원5 * \brief 멀티스레드 지원 6 6 * 7 7 * \example thread.c … … 12 12 #include "cf_base.h" 13 13 14 #include "cf_mutex.h" 15 14 16 /** 스레드 워커 함수 프로토타입 */ 15 17 typedef int (* CF_Thread_Function) (void *); … … 17 19 /** 스레드 컨텍스트 */ 18 20 typedef void * CF_Thread_Ctx; 19 20 /** 뮤텍스 컨텍스트 */21 typedef void * CF_Mutex_Ctx;22 21 23 22 #ifdef __cplusplus … … 39 38 CF_Thread_Join (CF_Thread_Ctx ctx); 40 39 41 CF_EXPORT int42 CF_Mutex_CreateCtx (CF_Mutex_Ctx * ctx);43 44 CF_EXPORT int45 CF_Mutex_DestoryCtx (CF_Mutex_Ctx ctx);46 47 CF_EXPORT int48 CF_Mutex_Lock (CF_Mutex_Ctx ctx);49 50 CF_EXPORT int51 CF_Mutex_Unlock (CF_Mutex_Ctx ctx);52 53 40 #ifdef __cplusplus 54 41 }
Note:
See TracChangeset
for help on using the changeset viewer.