+ (void) cancelAllThreads
+ (ULONG) count
+ (OBThread *) startWithObject:(id)target selector:(SEL)selector argument:(id)anyObject
Creates a new OBThread instance and starts the thread immediately
+ (OBThread *) startWithObject:(id)target selector:(SEL)selector argument:(id)anyObject taskName:(OBString *)name
+ (OBThread *) startWithObject:(id)target selector:(SEL)selector argument:(id)anyObject taskName:(OBString *)name stackSize:(ULONG)stackSize
+ (OBThread *) startWithObject:(id)target selector:(SEL)selector argument:(id)anyObject taskName:(OBString *)name stackSize:(ULONG)stackSize priority:(LONG)priority
+ (OBThread *) thread
- (void) cancel
Sets the thread as cancelled. This is only informative - the thread itself is not aborted. Generally, any loops running on the thread should check for the cancelled condition periodically. An additional SIGBREAKF_CTRL_C will be sent to the thread
- (BOOL) cancelled
- (id) initWithObject:(id)target selector:(SEL)selector argument:(id)anyObject
Init methods do NOT start the thread. Target is retained
- (id) initWithObject:(id)target selector:(SEL)selector argument:(id)anyObject taskName:(OBString *)name
- (id) initWithObject:(id)target selector:(SEL)selector argument:(id)anyObject taskName:(OBString *)name stackSize:(ULONG)stackSize
- (id) initWithObject:(id)target selector:(SEL)selector argument:(id)anyObject taskName:(OBString *)name stackSize:(ULONG)stackSize priority:(LONG)priority
- (BOOL) isDead
Returns YES if the thread was started but crashed somewhere in its execution
- (LONG) priority
- (BOOL) running
Returns YES if the thread was started and did not terminate correctly
- (void) setPriority:(LONG)priority
- (void) setStackSize:(ULONG)stackSize
- (void) setTaskName:(OBString *)name
- (ULONG) stackSize
Not applied if already started
- (BOOL) start
Returns YES on success or if thread already running
- (BOOL) startWithObject:(id)target
Useful if initWithObject called with a nil object, target is retained
- (OBString *) taskName
Ignored if already started, getter will return a OBNativeString