ObjFW  Diff

Differences From Artifact [7b696c0768]:

To Artifact [9dd35eedd7]:


86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
}

void
of_thread_set_name(of_thread_t thread, const char *name)
{
}

void
of_once(of_once_t *control, void (*func)(void))
{
	switch (InterlockedCompareExchange(control, 1, 0)) {
	case 0:
		func();
		InterlockedIncrement(control);
		break;
	case 1:
		while (*control == 1)
			Sleep(0);
		break;
	}
}

bool
of_mutex_new(of_mutex_t *mutex)
{
	InitializeCriticalSection(mutex);

	return true;
}







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







86
87
88
89
90
91
92















93
94
95
96
97
98
99
}

void
of_thread_set_name(of_thread_t thread, const char *name)
{
}
















bool
of_mutex_new(of_mutex_t *mutex)
{
	InitializeCriticalSection(mutex);

	return true;
}