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 | /** 스레드 워커 함수 프로토타입 */
|
---|
16 | typedef int (* CF_Thread_Function) (void *);
|
---|
17 |
|
---|
18 | #ifdef __cplusplus
|
---|
19 | extern "C" {
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | CF_EXPORT int
|
---|
23 | CF_Thread_Create (cf_ctx * ctx,
|
---|
24 | CF_Thread_Function callback,
|
---|
25 | void * arg);
|
---|
26 |
|
---|
27 | CF_EXPORT int
|
---|
28 | CF_Thread_Start (cf_ctx ctx);
|
---|
29 |
|
---|
30 | CF_EXPORT int
|
---|
31 | CF_Thread_Destroy (cf_ctx ctx);
|
---|
32 |
|
---|
33 | CF_EXPORT int
|
---|
34 | CF_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.