home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / Foundation.framework / Versions / B / Headers / NSThread.h < prev    next >
Encoding:
Text File  |  1996-10-25  |  941 b   |  43 lines

  1. /*    NSThread.h
  2.     Support for initiating and controlling threads
  3.     Copyright 1994-1996, NeXT Software, Inc.  All rights reserved.
  4. */
  5.  
  6. #import <Foundation/NSObject.h>
  7.  
  8. @class NSMutableDictionary, NSDate;
  9.  
  10. @interface NSThread : NSObject  {
  11. @private
  12.     struct cthread    *cthread;
  13.     unsigned        lastStack;
  14.     NSMutableDictionary    *threadDictionary;
  15.     id            runLoop;
  16.     id            noteQueue;
  17.     void        *autoreleasePool;
  18.     id            doQueue;
  19.     id            doConversation;
  20.     unsigned        doConversationCount;
  21.     id            doConversationRequest;
  22.     void        *reserved1;
  23.     void        *reserved;
  24. }
  25.  
  26. + (NSThread *)currentThread;
  27.  
  28. + (void)detachNewThreadSelector:(SEL)selector toTarget:(id)target withObject:(id)argument;
  29.  
  30. + (BOOL)isMultiThreaded;
  31.  
  32. - (NSMutableDictionary *)threadDictionary;
  33.  
  34. + (void)sleepUntilDate:(NSDate *)date;
  35.  
  36. + (void)exit;
  37.  
  38. @end
  39.  
  40. FOUNDATION_EXPORT NSString *NSWillBecomeMultiThreadedNotification;
  41. FOUNDATION_EXPORT NSString *NSThreadWillExitNotification;
  42.  
  43.