I'm running CFRunLoopRun()
in Thread A. To terminate the run loop, should I come back to Thread A to call CFRunLoopStop(CFRunLoopGetCurrent())
?
What happen if I call CFRunLoopStop(CFRunLoopGetCurrent())
in Thread B? If I'm in Thread B, how could I come back to Thread A to perform this call?
Sorry for this basic question. I just switched from Android to iOS and face a lot of context switch...
Thanks!