[Midnightbsd-cvs] src [7573] stable/0.8/contrib/libdispatch/src/queue.c: switch _dispatch_queue_serial_numbers to volatile so that it will build with clang.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun May 22 23:00:30 EDT 2016
Revision: 7573
http://svnweb.midnightbsd.org/src/?rev=7573
Author: laffer1
Date: 2016-05-22 23:00:30 -0400 (Sun, 22 May 2016)
Log Message:
-----------
switch _dispatch_queue_serial_numbers to volatile so that it will build with clang.
Modified Paths:
--------------
stable/0.8/contrib/libdispatch/src/queue.c
Modified: stable/0.8/contrib/libdispatch/src/queue.c
===================================================================
--- stable/0.8/contrib/libdispatch/src/queue.c 2016-05-22 23:37:34 UTC (rev 7572)
+++ stable/0.8/contrib/libdispatch/src/queue.c 2016-05-23 03:00:30 UTC (rev 7573)
@@ -528,7 +528,7 @@
// 3 - _unused_
// 4,5,6,7,8,9 - global queues
// we use 'xadd' on Intel, so the initial value == next assigned
-static unsigned long _dispatch_queue_serial_numbers = 10;
+unsigned long volatile _dispatch_queue_serial_numbers = 10;
// Note to later developers: ensure that any initialization changes are
// made for statically allocated queues (i.e. _dispatch_main_q).
More information about the Midnightbsd-cvs
mailing list