Thread notification updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4278 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-05-21 15:31:09 +00:00
parent 40e08a0da9
commit e29d616bcb
4 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,10 @@
Fri May 21 16:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/include/NSThread.h: Update notification names to MacOS-X
with defines for OpenStep compatibility.
* Source/NSThread.m: Update notification names to MacOS-X
* Source/externs.m: Update thread notification names to MacOS-X
Fri May 21 16:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk> Fri May 21 16:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/include/NSZone.h: Added NSZoneMallocAtomic() for Helge * Source/include/NSZone.h: Added NSZoneMallocAtomic() for Helge

View file

@ -63,8 +63,10 @@ typedef enum
@end @end
/* Notification Strings. */ /* Notification Strings. */
extern NSString *NSBecomingMultiThreaded; extern NSString *NSWillBecomeMultiThreadedNotification;
extern NSString *NSThreadExiting; #define NSBecomingMultiThreaded NSWillBecomeMultiThreadedNotification
extern NSString *NSThreadWillExitNotification;
#define NSThreadExiting NSThreadWillExitNotification
#ifndef NO_GNUSTEP #ifndef NO_GNUSTEP
/* /*

View file

@ -78,7 +78,7 @@ void gnustep_base_thread_callback()
{ {
entered_multi_threaded_state = YES; entered_multi_threaded_state = YES;
[[NSNotificationCenter defaultCenter] [[NSNotificationCenter defaultCenter]
postNotificationName: NSBecomingMultiThreaded postNotificationName: NSWillBecomeMultiThreadedNotification
object: nil]; object: nil];
} }
} }
@ -215,7 +215,7 @@ void gnustep_base_thread_callback()
// Post the notification // Post the notification
[[NSNotificationCenter defaultCenter] [[NSNotificationCenter defaultCenter]
postNotificationName: NSThreadExiting postNotificationName: NSThreadWillExitNotification
object: t]; object: t];
/* /*

View file

@ -44,8 +44,10 @@ NSString *ConnectionWasCreatedNotification =
@"ConnectionWasCreatedNotification"; @"ConnectionWasCreatedNotification";
/* NSThread Notifications */ /* NSThread Notifications */
NSString *NSBecomingMultiThreaded = @"NSBecomingMultiThreadedNotification"; NSString *NSWillBecomeMultiThreadedNotification
NSString *NSThreadExiting = @"NSThreadExitingNotification"; = @"NSWillBecomeMultiThreadedNotification";
NSString *NSThreadWillExitNotification
= @"NSThreadWillExitNotification";
/* Port Notifications */ /* Port Notifications */
NSString *PortBecameInvalidNotification = @"PortBecameInvalidNotification"; NSString *PortBecameInvalidNotification = @"PortBecameInvalidNotification";