deque: use atomic_uintptr_t
authorBrian Norris <banorris@uci.edu>
Tue, 5 Mar 2013 01:56:25 +0000 (17:56 -0800)
committerBrian 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

index 02a65ea635aa3b3caee8d56d0e05d81d189593a3..efa9b163fdd3036e46e2d5e4282129e90b50121d 100644 (file)
@@ -8,7 +8,7 @@ typedef struct {
 
 typedef struct {
        atomic_size_t top, bottom;
 
 typedef struct {
        atomic_size_t top, bottom;
-       Atomic(Array *) array;
+       atomic_uintptr_t array; /* Atomic(Array *) */
 } Deque;
 
 int take(Deque *q) {
 } Deque;
 
 int take(Deque *q) {