mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Synchronization fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26938 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ad6c1f8acf
commit
0246a2e9c3
4 changed files with 7091 additions and 7301 deletions
|
@ -1,3 +1,11 @@
|
|||
2008-10-19 Wolfgang Lux
|
||||
|
||||
* configure.ac: fix test for sychronization in objc runtime.
|
||||
|
||||
2008-10-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/synchronization.m: make internal functions private.
|
||||
|
||||
2008-10-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSCalendarDate.m: Fix typo (bug #24573)
|
||||
|
|
|
@ -73,8 +73,8 @@ sync_lock_init()
|
|||
/**
|
||||
* Find the node in the list.
|
||||
*/
|
||||
lock_node_t*
|
||||
objc_sync_find_node(id obj)
|
||||
static lock_node_t*
|
||||
sync_find_node(id obj)
|
||||
{
|
||||
lock_node_t *current = lock_list;
|
||||
|
||||
|
@ -100,8 +100,8 @@ objc_sync_find_node(id obj)
|
|||
/**
|
||||
* Add a node for the object, if one doesn't already exist.
|
||||
*/
|
||||
lock_node_t*
|
||||
objc_sync_add_node(id obj)
|
||||
static lock_node_t*
|
||||
sync_add_node(id obj)
|
||||
{
|
||||
lock_node_t *current = NULL;
|
||||
|
||||
|
@ -169,10 +169,10 @@ objc_sync_enter(id obj)
|
|||
// lock access to the table until we're done....
|
||||
objc_mutex_lock(table_lock);
|
||||
|
||||
node = objc_sync_find_node(obj);
|
||||
node = sync_find_node(obj);
|
||||
if (node == NULL)
|
||||
{
|
||||
node = objc_sync_add_node(obj);
|
||||
node = sync_add_node(obj);
|
||||
if (node == NULL)
|
||||
{
|
||||
// unlock the table....
|
||||
|
@ -209,7 +209,7 @@ objc_sync_exit(id obj)
|
|||
// lock access to the table until we're done....
|
||||
objc_mutex_lock(table_lock);
|
||||
|
||||
node = objc_sync_find_node(obj);
|
||||
node = sync_find_node(obj);
|
||||
if (node == NULL)
|
||||
{
|
||||
// unlock the table....
|
||||
|
|
|
@ -1306,9 +1306,6 @@ AC_EGREP_HEADER(objc_get_uninstalled_dtable, objc/objc-api.h,
|
|||
AC_DEFINE(HAVE_OBJC_GET_UNINSTALLED_DTABLE,1,
|
||||
[ Define if objc-api.h defines this function]),)
|
||||
|
||||
LIBS="$saved_LIBS"
|
||||
CPPFLAGS="$saved_CPPFLAGS"
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Function needed by @synchronize directive
|
||||
#--------------------------------------------------------------------
|
||||
|
@ -1320,6 +1317,9 @@ if test $ac_cv_func_objc_sync_enter = yes ; then
|
|||
fi
|
||||
AC_SUBST(HAVE_OBJC_SYNC_ENTER)
|
||||
|
||||
LIBS="$saved_LIBS"
|
||||
CPPFLAGS="$saved_CPPFLAGS"
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Generic settings needed by NSZone.m
|
||||
#--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue