Changes made in Rochester. See ChangeLog

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1650 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-07-15 18:41:44 +00:00
parent 7170d35e46
commit fe624212e5
55 changed files with 935 additions and 342 deletions

View file

@ -48,6 +48,7 @@ static o_map_t thread_id_2_nsthread;
/* Flag indicating whether the objc runtime ever went multi-threaded. */
static BOOL entered_multi_threaded_state;
@implementation NSThread
// Class initialization
@ -72,8 +73,8 @@ static BOOL entered_multi_threaded_state;
[super init];
/* initialize our ivars. */
_thread_dictionary = [NSMutableDictionary dictionary];
_thread_autorelease_pool = nil;
_thread_dictionary = nil; // Initialize this later only when needed
init_autorelease_thread_vars (&_autorelease_vars);
/* Make it easy and fast to get this NSThread object from the thread. */
objc_thread_set_data (self);
@ -137,6 +138,8 @@ static BOOL entered_multi_threaded_state;
- (NSMutableDictionary*) threadDictionary
{
if (!_thread_dictionary)
_thread_dictionary = [NSMutableDictionary dictionary];
return _thread_dictionary;
}