Switched to booleans defined in stdbool.h
This commit is contained in:
@ -29,6 +29,7 @@
|
|||||||
* system calls and are light weight when the expected wait time for a lock is low.
|
* system calls and are light weight when the expected wait time for a lock is low.
|
||||||
*/
|
*/
|
||||||
#include <thread.h>
|
#include <thread.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
typedef struct spinlock {
|
typedef struct spinlock {
|
||||||
int lock;
|
int lock;
|
||||||
@ -40,10 +41,10 @@ typedef struct spinlock {
|
|||||||
} SPINLOCK;
|
} SPINLOCK;
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE (1 == 1)
|
#define TRUE true
|
||||||
#endif
|
#endif
|
||||||
#ifndef FALSE
|
#ifndef FALSE
|
||||||
#define FALSE (1 == 0)
|
#define FALSE false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user