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


Ignore:
Timestamp:
06/04/13 14:25:10 (11 years ago)
Author:
cheese
Message:

#1 add typical data structure algorithms (linked-list / queue / stak) and rename symbol for context of each modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_thread.h

    r66 r109  
    1616
    1717/** 스레드 아이디 */
    18 typedef void *  CF_Thread;
     18typedef void *  CF_Thread_Ctx;
    1919
    2020/** 뮤텍스 아이디 */
    21 typedef void *  CF_Mutex;
     21typedef void *  CF_Mutex_Ctx;
    2222
    2323#ifdef __cplusplus
     
    2626
    2727CF_EXPORT int
    28 CF_Thread_Create    (CF_Thread          * threadID,
    29                     CF_Thread_Function callback,
    30                     void               * arg);
     28CF_Thread_CreateCtx     (CF_Thread_Ctx      * threadID,
     29                        CF_Thread_Function callback,
     30                        void               * arg);
    3131
    3232CF_EXPORT int
    33 CF_Thread_Release   (CF_Thread * threadID);
     33CF_Thread_DestroyCtx    (CF_Thread_Ctx * threadID);
    3434
    3535CF_EXPORT int
    36 CF_Thread_Join      (CF_Thread * threadID);
     36CF_Thread_Join          (CF_Thread_Ctx * threadID);
    3737
    3838CF_EXPORT int
    39 CF_Mutex_Create     (CF_Mutex * mutex);
     39CF_Mutex_CreateCtx      (CF_Mutex_Ctx * mutex);
    4040
    4141CF_EXPORT int
    42 CF_Mutex_Destory    (CF_Mutex * mutex);
     42CF_Mutex_DestoryCtx     (CF_Mutex_Ctx * mutex);
    4343
    4444CF_EXPORT int
    45 CF_Mutex_Lock       (CF_Mutex * mutex);
     45CF_Mutex_Lock           (CF_Mutex_Ctx * mutex);
    4646
    4747CF_EXPORT int
    48 CF_Mutex_Unlock     (CF_Mutex * mutex);
     48CF_Mutex_Unlock         (CF_Mutex_Ctx * mutex);
    4949
    5050#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.