CS350 COS
COS
Loading...
Searching...
No Matches
mutex.h
Go to the documentation of this file.
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
CoreMutex_Lock
void CoreMutex_Lock(CoreMutex *mtx)
Definition:
mutex.c:16
CoreMutex_Unlock
void CoreMutex_Unlock(CoreMutex *mtx)
Definition:
mutex.c:34
CoreMutex_TryLock
bool CoreMutex_TryLock(CoreMutex *mtx)
Definition:
mutex.c:24
CoreMutex_Init
void CoreMutex_Init(CoreMutex *mtx)
Definition:
mutex.c:9
CoreMutex::lock
uint64_t lock
Definition:
mutex.h:6
CoreMutex
Definition:
mutex.h:5
uint64_t
unsigned long uint64_t
Definition:
types.h:13
include
core
mutex.h
Generated by
1.9.6