ObjFW  Diff

Differences From Artifact [985b7a3ea1]:

To Artifact [675119db68]:


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
	int	      count;
	of_rmutex_t   rmutex;
	struct lock_s *next;
} *locks = NULL;

static of_mutex_t mutex;

static void __attribute__((__constructor__))
init(void)
{
	if (!of_mutex_new(&mutex))
		OBJC_ERROR("Failed to create mutex!")
}
#endif

int







|
<







30
31
32
33
34
35
36
37

38
39
40
41
42
43
44
	int	      count;
	of_rmutex_t   rmutex;
	struct lock_s *next;
} *locks = NULL;

static of_mutex_t mutex;

OF_CONSTRUCTOR()

{
	if (!of_mutex_new(&mutex))
		OBJC_ERROR("Failed to create mutex!")
}
#endif

int