mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Removed unused check (and definition of) objc_thread_add
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31761 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5b169afc97
commit
cae06e9e7b
5 changed files with 2842 additions and 16720 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* configure.ac (objc_thread_add): Check removed.
|
||||
* configure: Regenerated.
|
||||
* Headers/Additions/GNUstepBase/config.h.in: Regenerated.
|
||||
* Source/NSThread.m (objc_thread_add): Unused static function removed.
|
||||
|
||||
2010-12-22 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSCalendar.h: Add NSCopying protocol
|
||||
|
|
|
@ -385,9 +385,6 @@
|
|||
/* Define to 1 if you have the `objc_sync_enter' function. */
|
||||
#undef HAVE_OBJC_SYNC_ENTER
|
||||
|
||||
/* Define to 1 if you have the `objc_thread_add' function. */
|
||||
#undef HAVE_OBJC_THREAD_ADD
|
||||
|
||||
/* Define to 1 if you have the `poll' function. */
|
||||
#undef HAVE_POLL
|
||||
|
||||
|
@ -672,6 +669,9 @@
|
|||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#undef PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
|
|
|
@ -272,28 +272,6 @@ commonModes(void)
|
|||
return modes;
|
||||
}
|
||||
|
||||
#if !defined(HAVE_OBJC_THREAD_ADD) && !defined(NeXT_RUNTIME) && !defined(__GNUSTEP_RUNTIME__)
|
||||
/* We need to access these private vars in the objc runtime - because
|
||||
the objc runtime's API is not enough powerful for the GNUstep
|
||||
extensions we want to add. */
|
||||
extern objc_mutex_t __objc_runtime_mutex;
|
||||
extern int __objc_runtime_threads_alive;
|
||||
extern int __objc_is_multi_threaded;
|
||||
|
||||
/* WARNING:
|
||||
* GNUstep appears to have been written on the assumption that these variables
|
||||
* are used correctly by the GNU runtime. In fact, they are used in only one
|
||||
* place, and are used incorrectly there.
|
||||
*/
|
||||
inline static void objc_thread_add (void)
|
||||
{
|
||||
objc_mutex_lock(__objc_runtime_mutex);
|
||||
__objc_is_multi_threaded = 1;
|
||||
__objc_runtime_threads_alive++;
|
||||
objc_mutex_unlock(__objc_runtime_mutex);
|
||||
}
|
||||
#endif /* not HAVE_OBJC_THREAD_ADD */
|
||||
|
||||
/*
|
||||
* Flag indicating whether the objc runtime ever went multi-threaded.
|
||||
*/
|
||||
|
|
|
@ -1560,11 +1560,6 @@ fi
|
|||
|
||||
# Don't revert any Objective-C flags as they are used in the next test
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Check for ability to add a thread in runtime
|
||||
#--------------------------------------------------------------------
|
||||
AC_CHECK_FUNCS(objc_thread_add)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Check for thread synchronisation support in runtime
|
||||
#--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue