152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
* \param key The Thread Local Storage key
*/
+ (id)objectForTLSKey: (OFTLSKey*)key;
/**
* \brief Returns the current thread.
*
* \return The current thread or nil if we are in the main thread
*/
+ (OFThread*)currentThread;
/**
* \brief Suspends execution of the current thread for the specified time
* interval.
*
* \param seconds The number of seconds to sleep
*/
+ (void)sleepForTimeInterval: (double)seconds;
|
|
>
>
>
>
>
>
>
|
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
* \param key The Thread Local Storage key
*/
+ (id)objectForTLSKey: (OFTLSKey*)key;
/**
* \brief Returns the current thread.
*
* \return The current thread
*/
+ (OFThread*)currentThread;
/**
* \brief Returns the main thread.
*
* \return The main thread
*/
+ (OFThread*)mainThread;
/**
* \brief Suspends execution of the current thread for the specified time
* interval.
*
* \param seconds The number of seconds to sleep
*/
+ (void)sleepForTimeInterval: (double)seconds;
|
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
/**
* \brief Terminates the current thread, letting it return the specified object.
*
* \param object The object which the terminated thread will return
*/
+ (void)terminateWithObject: (id)object;
/**
* \brief Initializes an already allocated thread with the specified object.
*
* \param object An object which is passed for use in the main method or nil
* \return An initialized OFThread.
*/
|
>
>
|
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
/**
* \brief Terminates the current thread, letting it return the specified object.
*
* \param object The object which the terminated thread will return
*/
+ (void)terminateWithObject: (id)object;
+ (void)_createMainThread;
/**
* \brief Initializes an already allocated thread with the specified object.
*
* \param object An object which is passed for use in the main method or nil
* \return An initialized OFThread.
*/
|