ObjFW  Diff

Differences From Artifact [d3901856c6]:

To Artifact [5afa8ac0c0]:


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#import "runtime.h"
#import "runtime-private.h"

#ifdef OF_HAVE_THREADS
# import "threading.h"

struct lock_s {
	id	      object;
	int	      count;
	of_rmutex_t   rmutex;
	struct lock_s *next;
} *locks = NULL;

static of_mutex_t mutex;







|







21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#import "runtime.h"
#import "runtime-private.h"

#ifdef OF_HAVE_THREADS
# import "threading.h"

static struct lock_s {
	id	      object;
	int	      count;
	of_rmutex_t   rmutex;
	struct lock_s *next;
} *locks = NULL;

static of_mutex_t mutex;