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

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

#1 add bitwise util from ARIA of chevalier

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