From 614e20229ef725c99d51baef2d21c6ddec6ea24e Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 25 Jan 2010 18:41:42 +0000 Subject: [PATCH] Fixed copy and paste error in toydispatch. --- toydispatch/toydispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toydispatch/toydispatch.c b/toydispatch/toydispatch.c index ae70a42..b80a942 100644 --- a/toydispatch/toydispatch.c +++ b/toydispatch/toydispatch.c @@ -183,7 +183,7 @@ static inline void read_from_queue(dispatch_queue_t queue, unsigned int idx = MASK(queue->consumer); *function = queue->ring_buffer[idx].function; *data = queue->ring_buffer[idx].data; - __sync_fetch_and_add(&queue->consumer, 2); + __sync_fetch_and_add(&queue->consumer, 1); } static void *runloop(void *q)