ObjFW  Diff

Differences From Artifact [7e258abb92]:

To Artifact [bd27888ffe]:


141
142
143
144
145
146
147
148

149
150
151
152
153
154
155

156
157
158
159
160
161
162
141
142
143
144
145
146
147

148
149
150
151
152
153
154

155
156
157
158
159
160
161
162







-
+






-
+







 */
+ (void)yield;

#ifdef OF_HAVE_THREADS
/*!
 * @brief Terminates the current thread, letting it return nil.
 */
+ (void)terminate;
+ (void)terminate OF_NO_RETURN;

/*!
 * @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)terminateWithObject: (id)object OF_NO_RETURN;

# ifdef OF_HAVE_BLOCKS
/*!
 * @brief Initializes an already allocated thread with the specified block.
 *
 * @param threadBlock A block which is executed by the thread
 * @return An initialized OFThread.