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
|
Rev | Line | |
---|
[126] | 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 | /** 뮤텍스 컨텍스트 */
|
---|
| 15 | typedef void * CF_Mutex_Ctx;
|
---|
| 16 |
|
---|
| 17 | #ifdef __cplusplus
|
---|
| 18 | extern "C" {
|
---|
| 19 | #endif
|
---|
| 20 |
|
---|
| 21 | CF_EXPORT int
|
---|
| 22 | CF_Mutex_CreateCtx (CF_Mutex_Ctx * ctx);
|
---|
| 23 |
|
---|
| 24 | CF_EXPORT int
|
---|
| 25 | CF_Mutex_DestoryCtx (CF_Mutex_Ctx ctx);
|
---|
| 26 |
|
---|
| 27 | CF_EXPORT int
|
---|
| 28 | CF_Mutex_Lock (CF_Mutex_Ctx ctx);
|
---|
| 29 |
|
---|
| 30 | CF_EXPORT int
|
---|
| 31 | CF_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.