Switched to booleans defined in stdbool.h

This commit is contained in:
vraatikka
2013-08-28 22:49:27 +03:00
parent 34b26ad85f
commit 8c8475740a

View File

@ -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