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