projects
/
model-checker-benchmarks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09755ab
)
mcs-queue: a few changes
author
Brian Norris
<banorris@uci.edu>
Tue, 5 Mar 2013 18:10:22 +0000
(10:10 -0800)
committer
Brian Norris
<banorris@uci.edu>
Tue, 5 Mar 2013 18:10:22 +0000
(10:10 -0800)
mcs-queue/my_queue.h
patch
|
blob
|
history
diff --git
a/mcs-queue/my_queue.h
b/mcs-queue/my_queue.h
index 80e695829d9954b6f4a81860ca26d6c48e75a5d4..3e3f435b43569eb843932f29122907f6be06967d 100644
(file)
--- a/
mcs-queue/my_queue.h
+++ b/
mcs-queue/my_queue.h
@@
-1,3
+1,5
@@
+#include <stdatomic.h>
+
#define TRUE 1
#define FALSE 0
@@
-11,8
+13,8
@@
typedef union pointer {
volatile unsigned short count;
volatile unsigned short ptr;
} sep;
-
volatile unsigned
long con;
-}pointer_t;
+
atomic_u
long con;
+}
pointer_t;
typedef struct node {
unsigned value;