ObjFW  Diff

Differences From Artifact [af444c86d5]:

  • File src/once.m — part of check-in [374e1a1bfa] at 2021-01-02 22:04:26 on branch trunk — Update copyright (user: js size: 1601) [more...]

To Artifact [d6e7de13c8]:

  • File src/once.m — part of check-in [65510fa56b] at 2021-04-17 16:03:07 on branch new-naming-convention — of_thread_t -> OFPlainThread (user: js size: 1599)

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
		func();

		of_memory_barrier();

		of_atomic_int_inc(control);
	} else
		while (*control == 1)
			of_thread_yield();
#elif defined(OF_AMIGAOS)
	bool run = false;

	/* Avoid Forbid() in case it's already done. */
	if (*control == 2)
		return;








|







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
		func();

		of_memory_barrier();

		of_atomic_int_inc(control);
	} else
		while (*control == 1)
			OFYieldThread();
#elif defined(OF_AMIGAOS)
	bool run = false;

	/* Avoid Forbid() in case it's already done. */
	if (*control == 2)
		return;