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;
static void __attribute__((constructor))
init(void)
{
if (!of_mutex_new(&mutex))
OBJC_ERROR("Failed to create mutex!")
}
#endif
|
|
|
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;
static void __attribute__((__constructor__))
init(void)
{
if (!of_mutex_new(&mutex))
OBJC_ERROR("Failed to create mutex!")
}
#endif
|