T
T
tupoi2018-06-15 15:25:57
Objective-C
tupoi, 2018-06-15 15:25:57

What is CFRunLoop in iOS in CoreFoundation library?

Good afternoon, can someone explain what RunLoop is? apple does not have a description in the documentation, I accidentally stumbled upon this class in the library code and I wonder what this thing does?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2018-06-15
@tupoi

Seriously?
https://developer.apple.com/documentation/corefoun...
https://developer.apple.com/library/archive/docume... Simply put
, this is what makes a normal application different from a command line application. CFRunLoop is a queue that runs through everything inside it in an infinite loop until one of its components in the queue gives a signal. After processing, it repeats these steps until the application closes.
A run loop is an event processing loop that you use to schedule work and coordinate the receipt of incoming events. The purpose of a run loop is to keep your thread busy when there is work to do and put your thread to sleep when there is none.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question