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:
bb4d924
)
deque: use atomic_uintptr_t
author
Brian Norris
<banorris@uci.edu>
Tue, 5 Mar 2013 01:56:25 +0000
(17:56 -0800)
committer
Brian Norris
<banorris@uci.edu>
Tue, 5 Mar 2013 01:56:25 +0000
(17:56 -0800)
'Atomic(Array *)' seems to be a pseudocode type. Just use
atomic_uintptr_t and allow the warnings for now (we could alternatively
use a cast every time).
chase-lev-deque/deque.c
patch
|
blob
|
history
diff --git
a/chase-lev-deque/deque.c
b/chase-lev-deque/deque.c
index 02a65ea635aa3b3caee8d56d0e05d81d189593a3..efa9b163fdd3036e46e2d5e4282129e90b50121d 100644
(file)
--- a/
chase-lev-deque/deque.c
+++ b/
chase-lev-deque/deque.c
@@
-8,7
+8,7
@@
typedef struct {
typedef struct {
atomic_size_t top, bottom;
- Atomic(Array *) array;
+ atomic_uintptr_t array; /* Atomic(Array *) */
} Deque;
int take(Deque *q) {