ObjFW  Diff

Differences From Artifact [f18e106529]:

To Artifact [0c778cd456]:


289
290
291
292
293
294
295
296
297


298
299
300
301
302
303


304
305
306
307
308
309
310
289
290
291
292
293
294
295


296
297
298
299
300
301


302
303
304
305
306
307
308
309
310







-
-
+
+




-
-
+
+







}

- (void)OF_processQueue
{
	[mutex lock];
	@try {
		OFStream **queueObjects = [queue objects];
		int *queueInfoCArray = [queueInfo cArray];
		int *queueFDsCArray = [queueFDs cArray];
		int *queueInfoItems = [queueInfo items];
		int *queueFDsItems = [queueFDs items];
		size_t i, count = [queue count];

		for (i = 0; i < count; i++) {
			OFStream *stream = queueObjects[i];
			int action = queueInfoCArray[i];
			int fd = queueFDsCArray[i];
			int action = queueInfoItems[i];
			int fd = queueFDsItems[i];

			if ((action & QUEUE_ACTION) == QUEUE_ADD) {
				if (fd > maxFD) {
					maxFD = fd;
					FDToStream = [self
					    resizeMemory: FDToStream
						    size: sizeof(OFStream*)