picofuse-objc

NXThread.h
Go to the documentation of this file.
1 
5 #pragma once
6 #include "NXDuration.h"
7 
18 @interface NXThread : NXObject
19 
25 + (void)sleepForDuration:(NXDuration)duration;
26 
33 + (void)halt;
34 
38 + (uint8_t)numberOfCores;
39 
44 + (uint8_t)coreNumber;
45 
59 + (BOOL)run:(SEL)selector target:(id)target;
60 
71 + (BOOL)run:(SEL)selector target:(id)target core:(uint8_t)core;
72 
85 + (BOOL)run:(SEL)selector target:(id)target argument:(id)argument;
86 
97 + (BOOL)run:(SEL)selector
98  target:(id)target
99  argument:(id)argument
100  core:(uint8_t)core;
101 
102 @end
Defines the NXDuration type, and constants for units of time.
Runs methods in threads, and provides information about cores.
Definition: NXThread.h:18
int64_t NXDuration
A length of time, in nanoseconds, which may be negative.
Definition: NXDuration.h:17
uint8_t numberOfCores()
Returns the number of cores.
void halt()
Stops the program, and doesn't return.
uint8_t coreNumber()
Returns the number of the core which the calling thread is running on, starting with zero...
bool BOOL
A Boolean value.
Definition: runtime.h:60
The base class for objects in the Foundation framework.
Definition: NXObject.h:28