ObjFW  Check-in [cce8073769]

Overview
Comment:Fix one forgotten rename
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cce8073769c257184541f374573a06063e5f33a452ec7e442b2892841a591fa4
User & Date: js on 2016-08-08 02:29:36
Other Links: manifest | tags
Context
2016-08-15
00:07
Support SjLj C++ EH on Darwin with ObjFW runtime check-in: 894a87f823 user: js tags: trunk
2016-08-08
02:29
Fix one forgotten rename check-in: cce8073769 user: js tags: trunk
2016-08-06
10:26
Update to Unicode 9.0 check-in: 6496279fa0 user: js tags: trunk
Changes

Modified src/threading.m from [7d26f1a4ec] to [6aff469b2f].

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef OF_HAVE_PTHREADS
void
of_once(of_once_t *control, void (*func)(void))
{
	if (of_atomic_int_cmpswap(control, 0, 1)) {
		func();

		of_memory_barrier();

		of_atomic_int_inc(control);
	} else
		while (*control == 1)
			of_thread_yield();
}
#endif







|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef OF_HAVE_PTHREADS
void
of_once(of_once_t *control, void (*func)(void))
{
	if (of_atomic_int_cmpswap(control, 0, 1)) {
		func();

		of_memory_barrier_sync();

		of_atomic_int_inc(control);
	} else
		while (*control == 1)
			of_thread_yield();
}
#endif