Event Loop - Implementations - OS X Core Foundation Run Loops

OS X Core Foundation Run Loops

Exactly one CFRunLoop is allowed per thread, and arbitrarily many sources and observers can be attached. Sources then communicate with observers through the run loop, with it organising queueing and dispatch of messages.

The CFRunLoop is abstracted in Cocoa as an NSRunLoop, which allows any message (equivalent to a function call in non-reflective runtimes) to be queued for dispatch to any object.

Read more about this topic:  Event Loop, Implementations

Famous quotes containing the words loops, run, core and/or foundation:

    In the labyrinth of a difficult text, we find unmarked forks in the path, detours, blind alleys, loops that deliver us back to our point of entry, and finally the monster who whispers an unintelligible truth in our ears.
    Mason Cooley (b. 1927)

    they filled his belly
    with large stones and sewed him up.
    He was as heavy as a cemetery
    and when he woke up and tried to run off
    he fell over dead. Killed by his own weight.
    Many a deception ends on such a note.
    Anne Sexton (1928–1974)

    In the core of God’s abysm,—
    Was a weed of self and schism;
    And ever the Daemonic Love
    Is the ancestor of wars,
    And the parent of remorse.
    Ralph Waldo Emerson (1803–1882)

    The institution of the family is decisive in determining not only if a person has the capacity to love another individual but in the larger social sense whether he is capable of loving his fellow men collectively. The whole of society rests on this foundation for stability, understanding and social peace.
    Daniel Patrick Moynihan (20th century)