ObjFW  Diff

Differences From Artifact [135a1ec8ae]:

To Artifact [48147e27cd]:


464
465
466
467
468
469
470

471

472
473
474
475
476
477
478
464
465
466
467
468
469
470
471

472
473
474
475
476
477
478
479







+
-
+








- (OFRunLoop *)runLoop
{
# if defined(OF_HAVE_ATOMIC_OPS) && !defined(__clang_analyzer__)
	if (_runLoop == nil) {
		OFRunLoop *tmp = [[OFRunLoop alloc] init];

		if (!OFAtomicPointerCompareAndSwap(
		if (!of_atomic_ptr_cmpswap((void **)&_runLoop, nil, tmp))
		    (void **)&_runLoop, nil, tmp))
			[tmp release];
	}
# else
	@synchronized (self) {
		if (_runLoop == nil)
			_runLoop = [[OFRunLoop alloc] init];
	}