source: libcf/trunk/include/cf_thread.h@ 151

Last change on this file since 151 was 151, checked in by cheese, 11 years ago

#1 fix interface and add util module

File size: 649 bytes
Line 
1/**
2 * \file cf_thread.h
3 *
4 * \author myusgun <myusgun@gmail.com>
5 *
6 * \brief 멀티스레드 지원
7 *
8 * \example thread.c
9 */
10#ifndef __CF_THREAD_H__
11#define __CF_THREAD_H__
12
13#include "cf_base.h"
14
15/** 스레드 워커 함수 프로토타입 */
16typedef int (* CF_Thread_Function) (void *);
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22CF_EXPORT int
23CF_Thread_Create (cf_ctx * ctx,
24 CF_Thread_Function callback,
25 void * arg);
26
27CF_EXPORT int
28CF_Thread_Start (cf_ctx ctx);
29
30CF_EXPORT int
31CF_Thread_Destroy (cf_ctx ctx);
32
33CF_EXPORT int
34CF_Thread_Join (cf_ctx ctx);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif // #ifndef __CF_THREAD_H__
Note: See TracBrowser for help on using the repository browser.