ObjFW  Diff

Differences From Artifact [f36d27a475]:

To Artifact [acc1d91474]:


365
366
367
368
369
370
371


372

373

374
375
376
377
378
379
380
			break;
		}
#ifdef OF_HAVE_BLOCKS
	}
#endif

	[condition lock];


	[condition signal];

	[condition unlock];


	if (repeats && isValid) {
		OFDate *old = fireDate;
		fireDate = [[OFDate alloc]
		    initWithTimeIntervalSinceNow: interval];
		[old release];








>
>
|
>
|
>







365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
			break;
		}
#ifdef OF_HAVE_BLOCKS
	}
#endif

	[condition lock];
	@try {
		done = YES;
		[condition signal];
	} @finally {
		[condition unlock];
	}

	if (repeats && isValid) {
		OFDate *old = fireDate;
		fireDate = [[OFDate alloc]
		    initWithTimeIntervalSinceNow: interval];
		[old release];

402
403
404
405
406
407
408






409

410
411

412
{
	return isValid;
}

- (void)waitUntilDone
{
	[condition lock];






	[condition wait];

	[condition unlock];
}

@end







>
>
>
>
>
>
|
>
|
|
>

406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
{
	return isValid;
}

- (void)waitUntilDone
{
	[condition lock];
	@try {
		if (done) {
			done = NO;
			return;
		}

		[condition wait];
	} @finally {
		[condition unlock];
	}
}
@end