"Dispatch", as in "Grand Central Dispatch", Apple's answer to Life, the 
Universe, and Everything.

Basically GCD is a threading mechanism combined with C/C++/ObjC/ObjC++ language 
extensions for "blocks" (lamdas) that allow you to do fine-grain thread 
scheduling inline, like this (going from memory so I'm sure the following code 
won't compile as-is):

    dispatch_async(dispatch_global_queue(), ^{
      /* code that runs in a thread */
    });

Blocks can also be used in place of callback functions in most places now as 
well.


On Jun 3, 2012, at 8:59 AM, Greg Ercolano wrote:

> On 06/02/12 17:50, Michael Sweet wrote:
>> NSThread uses dispatch threads on newer versions of OS X - 10.6 and higher 
>> IIRC...
> 
>       I'll bet that means something, but I don't know what ;)
> 
>       I try to remain as blissfully ignorant of carbon/cocoa
>       as possible, but had to dive deep on two occasions;
>       once to do the add_fd()/OSX code, the other for the
>       NativeFileChooser stuff.
> 
>       Each time it was like going into a dark cave to slay a dragon,
>       finding several dragons, and coming out burned and "slimed",
>       but somehow victorious. After each battle, I took a long shower
>       and tried to forget what I saw..
> 
> 
> 
> 
> _______________________________________________
> fltk-dev mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk-dev

_____________
Michael Sweet

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to