ObjFW  Diff

Differences From Artifact [21c1e4f75c]:

To Artifact [ac9dc3c880]:


26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# error No threads available!
#endif

#ifdef __HAIKU__
# include <kernel/OS.h>
#endif

void
of_thread_set_name(of_thread_t thread, const char *name)
{
#ifdef __HAIKU__
	rename_thread(get_pthread_thread_id(thread), name);
#endif
}

bool
of_rmutex_new(of_rmutex_t *rmutex)
{
#ifdef OF_HAVE_RECURSIVE_PTHREAD_MUTEXES
	pthread_mutexattr_t attr;

	if (pthread_mutexattr_init(&attr) != 0)







<
<
<
<
<
<
<
<







26
27
28
29
30
31
32








33
34
35
36
37
38
39
# error No threads available!
#endif

#ifdef __HAIKU__
# include <kernel/OS.h>
#endif









bool
of_rmutex_new(of_rmutex_t *rmutex)
{
#ifdef OF_HAVE_RECURSIVE_PTHREAD_MUTEXES
	pthread_mutexattr_t attr;

	if (pthread_mutexattr_init(&attr) != 0)