Differences From Artifact [0e4fc2baa0]:
- File src/runtime/synchronized.m — part of check-in [4c72b5544f] at 2018-04-29 20:27:23 on branch trunk — runtime: Add glue functions for Amiga library (user: js, size: 2845) [annotate] [blame] [check-ins using]
To Artifact [9c9179113a]:
- File
src/runtime/synchronized.m
— part of check-in
[0f42b0eafd]
at
2018-01-21 22:16:23
on branch trunk
— Allow building the runtime as a .framework
This also renames ObjFW-RT to ObjFW_RT, as hyphens should not be in
framework names. (user: js, size: 2773) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
39 40 41 42 43 44 45 |
{
if (!of_mutex_new(&mutex))
OBJC_ERROR("Failed to create mutex!")
}
#endif
int
| | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
{
if (!of_mutex_new(&mutex))
OBJC_ERROR("Failed to create mutex!")
}
#endif
int
objc_sync_enter(id object)
{
if (object == nil)
return 0;
#ifdef OF_HAVE_THREADS
struct lock_s *lock;
|
| ︙ | ︙ | |||
90 91 92 93 94 95 96 |
OBJC_ERROR("Failed to lock mutex!");
#endif
return 0;
}
int
| | | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
OBJC_ERROR("Failed to lock mutex!");
#endif
return 0;
}
int
objc_sync_exit(id object)
{
if (object == nil)
return 0;
#ifdef OF_HAVE_THREADS
struct lock_s *lock, *last = NULL;
|
| ︙ | ︙ |