Changeset 122 in libcf for trunk/include/cf_thread.h


Ignore:
Timestamp:
06/12/13 11:05:07 (11 years ago)
Author:
cheese
Message:

#1 modify id to context in thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_thread.h

    r121 r122  
    1515typedef int (* CF_Thread_Function) (void *);
    1616
    17 /** 스레드 아이디 */
     17/** 스레드 컨텍스트 */
    1818typedef void *  CF_Thread_Ctx;
    1919
    20 /** 뮤텍스 아이디 */
     20/** 뮤텍스 컨텍스트 */
    2121typedef void *  CF_Mutex_Ctx;
    2222
     
    2626
    2727CF_EXPORT int
    28 CF_Thread_Create        (CF_Thread_Ctx      * threadID,
     28CF_Thread_CreateCtx     (CF_Thread_Ctx      * ctx,
    2929                         CF_Thread_Function callback,
    3030                         void               * arg);
    3131
    3232CF_EXPORT int
    33 CF_Thread_DestroyCtx    (CF_Thread_Ctx * threadID);
     33CF_Thread_Start         (CF_Thread_Ctx ctx);
    3434
    3535CF_EXPORT int
    36 CF_Thread_Join          (CF_Thread_Ctx * threadID);
     36CF_Thread_DestroyCtx    (CF_Thread_Ctx ctx);
    3737
    3838CF_EXPORT int
    39 CF_Mutex_CreateCtx      (CF_Mutex_Ctx * mutex);
     39CF_Thread_Join          (CF_Thread_Ctx ctx);
    4040
    4141CF_EXPORT int
    42 CF_Mutex_DestoryCtx     (CF_Mutex_Ctx * mutex);
     42CF_Mutex_CreateCtx      (CF_Mutex_Ctx * ctx);
    4343
    4444CF_EXPORT int
    45 CF_Mutex_Lock           (CF_Mutex_Ctx * mutex);
     45CF_Mutex_DestoryCtx     (CF_Mutex_Ctx ctx);
    4646
    4747CF_EXPORT int
    48 CF_Mutex_Unlock         (CF_Mutex_Ctx * mutex);
     48CF_Mutex_Lock           (CF_Mutex_Ctx ctx);
     49
     50CF_EXPORT int
     51CF_Mutex_Unlock         (CF_Mutex_Ctx ctx);
    4952
    5053#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.