ObjFW  Diff

Differences From Artifact [2fb0666be8]:

To Artifact [0e441a08b1]:


200
201
202
203
204
205
206


207

208
209
210
211
212
213
214
200
201
202
203
204
205
206
207
208

209
210
211
212
213
214
215
216







+
+
-
+







}

static OF_INLINE bool
of_spinlock_lock(of_spinlock_t *spinlock)
{
#if defined(OF_HAVE_ATOMIC_OPS)
# if defined(OF_HAVE_SCHED_YIELD) || defined(OF_WINDOWS)
	size_t i;

	for (size_t i = 0; i < OF_SPINCOUNT; i++)
	for (i = 0; i < OF_SPINCOUNT; i++)
		if (of_spinlock_trylock(spinlock))
			return true;

	while (!of_spinlock_trylock(spinlock))
#  ifndef OF_WINDOWS
		sched_yield();
#  else