Skip to content

Commit 386f3a5

Browse files
authored
Merge pull request #1412 from zhangchn/patch-1
2 parents 516dd71 + ca27e38 commit 386f3a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CoreFoundation/RunLoop.subproj/CFRunLoop.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,7 @@ void CFRunLoopWakeUp(CFRunLoopRef rl) {
30693069
if (__CFMainThreadHasExited && rl == CFRunLoopGetMain()) {
30703070
static dispatch_once_t onceToken;
30713071
dispatch_once(&onceToken, ^{
3072-
os_log_error(_CFOSLog(), "Attempting to wake up main runloop, but the main thread as exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug.");
3072+
os_log_error(_CFOSLog(), "Attempting to wake up main runloop, but the main thread has exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug.");
30733073
});
30743074
_CFRunLoopError_MainThreadHasExited();
30753075
return;
@@ -3138,7 +3138,7 @@ void CFRunLoopPerformBlock(CFRunLoopRef rl, CFTypeRef mode, void (^block)(void))
31383138
if (__CFMainThreadHasExited && rl == CFRunLoopGetMain()) {
31393139
static dispatch_once_t onceToken;
31403140
dispatch_once(&onceToken, ^{
3141-
os_log_error(_CFOSLog(), "Attempting to perform block on main runloop, but the main thread as exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug.");
3141+
os_log_error(_CFOSLog(), "Attempting to perform block on main runloop, but the main thread has exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug.");
31423142
});
31433143
_CFRunLoopError_MainThreadHasExited();
31443144
return;
@@ -3225,7 +3225,7 @@ void CFRunLoopAddSource(CFRunLoopRef rl, CFRunLoopSourceRef rls, CFStringRef mod
32253225
if (__CFMainThreadHasExited && rl == CFRunLoopGetMain()) {
32263226
static dispatch_once_t onceToken;
32273227
dispatch_once(&onceToken, ^{
3228-
CFLog(kCFLogLevelError, CFSTR("Attempting to add source to main runloop, but the main thread as exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug."));
3228+
CFLog(kCFLogLevelError, CFSTR("Attempting to add source to main runloop, but the main thread has exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug."));
32293229
});
32303230
_CFRunLoopError_MainThreadHasExited();
32313231
return;
@@ -3422,7 +3422,7 @@ void CFRunLoopAddObserver(CFRunLoopRef rl, CFRunLoopObserverRef rlo, CFStringRef
34223422
if (__CFMainThreadHasExited && rl == CFRunLoopGetMain()) {
34233423
static dispatch_once_t onceToken;
34243424
dispatch_once(&onceToken, ^{
3425-
CFLog(kCFLogLevelError, CFSTR("Attempting to add observer to main runloop, but the main thread as exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug."));
3425+
CFLog(kCFLogLevelError, CFSTR("Attempting to add observer to main runloop, but the main thread has exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug."));
34263426
});
34273427
_CFRunLoopError_MainThreadHasExited();
34283428
return;
@@ -3532,7 +3532,7 @@ void CFRunLoopAddTimer(CFRunLoopRef rl, CFRunLoopTimerRef rlt, CFStringRef modeN
35323532
if (__CFMainThreadHasExited && rl == CFRunLoopGetMain()) {
35333533
static dispatch_once_t onceToken;
35343534
dispatch_once(&onceToken, ^{
3535-
CFLog(kCFLogLevelError, CFSTR("Attempting to add timer to main runloop, but the main thread as exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug."));
3535+
CFLog(kCFLogLevelError, CFSTR("Attempting to add timer to main runloop, but the main thread has exited. This message will only log once. Break on _CFRunLoopError_MainThreadHasExited to debug."));
35363536
});
35373537
_CFRunLoopError_MainThreadHasExited();
35383538
return;

0 commit comments

Comments
 (0)