1 2 #ifndef __CORE_MUTEX_H__ 3 #define __CORE_MUTEX_H__ 4 5 typedef struct CoreMutex { 6 uint64_t lock; 7 } CoreMutex; 8 9 void CoreMutex_Init(CoreMutex *mtx); 10 void CoreMutex_Lock(CoreMutex *mtx); 11 bool CoreMutex_TryLock(CoreMutex *mtx); 12 void CoreMutex_Unlock(CoreMutex *mtx); 13 14 #endif /* __CORE_MUTEX_H__ */ 15 16