metal-cos/include/core/mutex.h

16 lines
297 B
C
Raw Normal View History

#ifndef __CORE_MUTEX_H__
#define __CORE_MUTEX_H__
2015-01-31 04:44:01 +00:00
typedef struct CoreMutex {
uint64_t lock;
2015-01-31 04:44:01 +00:00
} CoreMutex;
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);
#endif /* __CORE_MUTEX_H__ */