ObjFW  Diff

Differences From Artifact [ca016b6bde]:

To Artifact [f1900f7431]:


127
128
129
130
131
132
133
134

135
136
137
138
139
140
141

142
143
144

145
146
147
148
149
150
151
127
128
129
130
131
132
133

134
135
136
137
138
139
140

141
142
143

144
145
146
147
148
149
150
151







-
+






-
+


-
+







/**
 * \param obj An object that is passed to the main method as a copy or nil
 * \return An initialized OFThread.
 */
- initWithObject: (OFObject <OFCopying>*)obj;

/**
 * The run routine of the thread. You need to reimplement this!
 * The main routine of the thread. You need to reimplement this!
 *
 * It can access the object passed to the threadWithObject or initWithObject
 * method using the instance variable named object.
 *
 * \return The object the join method should return when called for this thread
 */
- (id)run;
- (id)main;

/**
 * This routine is exectued when the thread's run method has finished executing
 * This routine is exectued when the thread's main method has finished executing
 * or terminate has been called.
 */
- (void)handleTermination;

/**
 * Starts the thread.
 */