From 2202f9754ed82b8cd5fc9a0c9b5ec1d7416d6129 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 5 Mar 2013 10:10:22 -0800 Subject: [PATCH 1/1] mcs-queue: a few changes --- mcs-queue/my_queue.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mcs-queue/my_queue.h b/mcs-queue/my_queue.h index 80e6958..3e3f435 100644 --- a/mcs-queue/my_queue.h +++ b/mcs-queue/my_queue.h @@ -1,3 +1,5 @@ +#include + #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_ulong con; +} pointer_t; typedef struct node { unsigned value; -- 2.34.1