ObjFW  Diff

Differences From Artifact [3ce1164040]:

To Artifact [2fb0666be8]:


200
201
202
203
204
205
206
207
208
209

210
211
212
213
214
215
216
200
201
202
203
204
205
206



207
208
209
210
211
212
213
214







-
-
-
+







}

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)
	int i;

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

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