2015-01-31 02:41:46 +00:00
|
|
|
|
|
|
|
#ifndef __CORE_MUTEX_H__
|
|
|
|
#define __CORE_MUTEX_H__
|
|
|
|
|
2015-01-31 04:44:01 +00:00
|
|
|
typedef struct CoreMutex {
|
2015-01-31 02:41:46 +00:00
|
|
|
uint64_t lock;
|
2015-01-31 04:44:01 +00:00
|
|
|
} CoreMutex;
|
2015-01-31 02:41:46 +00:00
|
|
|
|
2015-01-31 04:44:01 +00:00
|
|
|
void CoreMutex_Init(CoreMutex *mtx);
|
|
|
|
void CoreMutex_Lock(CoreMutex *mtx);
|
|
|
|
bool CoreMutex_TryLock(CoreMutex *mtx);
|
|
|
|
void CoreMutex_Unlock(CoreMutex *mtx);
|
2015-01-31 02:41:46 +00:00
|
|
|
|
|
|
|
#endif /* __CORE_MUTEX_H__ */
|
|
|
|
|