~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Headers/Foundation/NSThread.h

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#define __NSThread_h_GNUSTEP_BASE_INCLUDE
28
28
#import <GNUstepBase/GSVersionMacros.h>
29
29
 
30
 
#import <Foundation/NSDictionary.h>
31
 
#import <Foundation/NSDate.h>
 
30
#if     defined(GNUSTEP_BASE_INTERNAL)
 
31
#import "Foundation/NSAutoreleasePool.h" // for struct autorelease_thread_vars
 
32
#import "Foundation/NSException.h"      // for NSHandler
 
33
#else
 
34
#import <Foundation/NSAutoreleasePool.h>
32
35
#import <Foundation/NSException.h>
33
 
#import <Foundation/NSAutoreleasePool.h> // for struct autorelease_thread_vars
 
36
#endif
34
37
 
35
38
@class  NSArray;
 
39
@class  NSDate;
 
40
@class  NSMutableDictionary;
36
41
 
37
42
#if     defined(__cplusplus)
38
43
extern "C" {
51
56
 */
52
57
@interface NSThread : NSObject
53
58
{
54
 
@private
 
59
#if     GS_EXPOSE(NSThread)
 
60
@public
55
61
  id                    _target;
56
62
  id                    _arg;
57
63
  SEL                   _selector;
58
64
  NSString              *_name;
59
 
  unsigned              _stackSize;
 
65
  NSUInteger            _stackSize;
60
66
  BOOL                  _cancelled;
61
67
  BOOL                  _active;
62
68
  BOOL                  _finished;
65
71
  struct autorelease_thread_vars _autorelease_vars;
66
72
  id                    _gcontext;
67
73
  void                  *_runLoopInfo;  // Per-thread runloop related info.
68
 
  void                  *_reserved;     // For future expansion
 
74
#endif
 
75
#if     !GS_NONFRAGILE
 
76
  void                  *_unused;     // For future expansion
 
77
#endif
69
78
}
70
79
 
71
80
/**
114
123
- (NSMutableDictionary*) threadDictionary;
115
124
 
116
125
#if OS_API_VERSION(MAC_OS_X_VERSION_10_2,GS_API_LATEST) \
117
 
  && GS_API_VERSION(010200,GS_API_LATEST)
 
126
  && GS_API_VERSION( 10200,GS_API_LATEST)
118
127
+ (void) setThreadPriority: (double)pri;
119
128
+ (double) threadPriority;
120
129
#endif
121
130
 
122
131
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5,GS_API_LATEST) \
123
 
  && GS_API_VERSION(011501,GS_API_LATEST)
 
132
  && GS_API_VERSION( 11501,GS_API_LATEST)
124
133
 
125
134
/** Returns an array of the call stack return addresses.
126
135
 */
190
199
 
191
200
/** Sets the size of the receiver's stack.
192
201
 */
193
 
- (void) setStackSize: (unsigned)stackSize;
 
202
- (void) setStackSize: (NSUInteger)stackSize;
194
203
 
195
204
/** Returns the size of the receiver's stack.
196
205
 */
197
 
- (unsigned) stackSize;
 
206
- (NSUInteger) stackSize;
198
207
 
199
208
/** Starts the receiver executing.
200
209
 */
370
379
 */
371
380
GS_EXPORT NSString* const NSThreadDidStartNotification;
372
381
 
373
 
/*
374
 
 *      Get current thread and it's dictionary.
375
 
 */
376
 
GS_EXPORT NSThread              *GSCurrentThread(void);
377
 
GS_EXPORT NSMutableDictionary   *GSCurrentThreadDictionary(void);
 
382
#endif
 
383
 
 
384
#if     !NO_GNUSTEP
 
385
#  if   defined(GNUSTEP_BASE_INTERNAL)
 
386
#    import     "GNUstepBase/NSThread+GNUstepBase.h"
 
387
#  else
 
388
#    import     <GNUstepBase/NSThread+GNUstepBase.h>
 
389
#  endif
378
390
#endif
379
391
 
380
392
#if     defined(__cplusplus)