source: libcf/trunk/include/cf_mutex.h@ 126

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

#1 separate header/source files for thread and mutex

File size: 570 bytes
Line 
1/**
2 * \file cf_mutex.h
3 * \author myusgun <myusgun@gmail.com>
4 *
5 * \brief 뮤텍스 지원
6 *
7 * \example thread.c
8 */
9#ifndef __CF_MUTEX_H__
10#define __CF_MUTEX_H__
11
12#include "cf_base.h"
13
14/** 뮤텍스 컨텍스트 */
15typedef void * CF_Mutex_Ctx;
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21CF_EXPORT int
22CF_Mutex_CreateCtx (CF_Mutex_Ctx * ctx);
23
24CF_EXPORT int
25CF_Mutex_DestoryCtx (CF_Mutex_Ctx ctx);
26
27CF_EXPORT int
28CF_Mutex_Lock (CF_Mutex_Ctx ctx);
29
30CF_EXPORT int
31CF_Mutex_Unlock (CF_Mutex_Ctx ctx);
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif // #ifndef __CF_MUTEX_H__
38
Note: See TracBrowser for help on using the repository browser.