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
|
Rev | Line | |
---|
[126] | 1 | /**
|
---|
[128] | 2 | * \file cf_mutex.h
|
---|
[126] | 3 | *
|
---|
[128] | 4 | * \author myusgun <myusgun@gmail.com>
|
---|
| 5 | *
|
---|
[126] | 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 | /** 뮤텍스 컨텍스트 */
|
---|
| 16 | typedef void * CF_Mutex_Ctx;
|
---|
| 17 |
|
---|
| 18 | #ifdef __cplusplus
|
---|
| 19 | extern "C" {
|
---|
| 20 | #endif
|
---|
| 21 |
|
---|
| 22 | CF_EXPORT int
|
---|
| 23 | CF_Mutex_CreateCtx (CF_Mutex_Ctx * ctx);
|
---|
| 24 |
|
---|
| 25 | CF_EXPORT int
|
---|
| 26 | CF_Mutex_DestoryCtx (CF_Mutex_Ctx ctx);
|
---|
| 27 |
|
---|
| 28 | CF_EXPORT int
|
---|
| 29 | CF_Mutex_Lock (CF_Mutex_Ctx ctx);
|
---|
| 30 |
|
---|
| 31 | CF_EXPORT int
|
---|
| 32 | CF_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.