mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Added weak attribute to the synchronization functions so that they won't replace equivalent functions provided by the runtime, if available.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28611 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
852e924f52
commit
f78dd03c31
1 changed files with 2 additions and 0 deletions
|
@ -161,6 +161,7 @@ sync_add_node(id obj)
|
||||||
* Add a lock for the object.
|
* Add a lock for the object.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
|
__attribute__((weak))
|
||||||
objc_sync_enter(id obj)
|
objc_sync_enter(id obj)
|
||||||
{
|
{
|
||||||
lock_node_t *node = NULL;
|
lock_node_t *node = NULL;
|
||||||
|
@ -202,6 +203,7 @@ objc_sync_enter(id obj)
|
||||||
* Remove a lock for the object.
|
* Remove a lock for the object.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
|
__attribute__((weak))
|
||||||
objc_sync_exit(id obj)
|
objc_sync_exit(id obj)
|
||||||
{
|
{
|
||||||
lock_node_t *node = NULL;
|
lock_node_t *node = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue