ObjFW  Diff

Differences From Artifact [a7fd919f6d]:

To Artifact [92fe55ab19]:


145
146
147
148
149
150
151
152
153
154





155
156
157
158
159
160
161
145
146
147
148
149
150
151



152
153
154
155
156
157
158
159
160
161
162
163







-
-
-
+
+
+
+
+







			 * -1 should be -128 (lowest possible priority) while
			 * +1 should be +127 (highest possible priority).
			 */
			ADD_TAG(NP_Priority, (attr->priority > 0
			    ? attr->priority * 127 : attr->priority * 128))
		}

		ADD_TAG(NP_StackSize, (attr != NULL && attr->stackSize != 0
		    ? (LONG)attr->stackSize
		    : ((struct Process *)FindTask(NULL))->pr_StackSize))
		if (attr != NULL && attr->stackSize != 0)
			ADD_TAG(NP_StackSize, attr->stackSize)
		else
			ADD_TAG(NP_StackSize,
			    ((struct Process *)FindTask(NULL))->pr_StackSize)

		ADD_TAG(TAG_DONE, 0)
#undef ADD_TAG

		(*thread)->task = (struct Task *)CreateNewProc(tags.items);
		if ((*thread)->task == NULL) {
			free(*thread);