August 2011
Intermediate to advanced
552 pages
23h 48m
English
Dispatch objects provide one more function we have yet to discuss. The dispatch_debug function logs debugging information about any dispatch object:
void dispatch_debug (dispatch_object_t object,
const char *message, ...);
In the released version of the library, dispatch_debug() logs to the system log rather than to the console.
The logged information is intended to assist developers of the libdispatch library and is only marginally useful to users of Grand Central Dispatch. For example, here is the output generated for several different kinds of dispatch objects:
com.bignerdranch.dispatch_debug: com.apple.root.default-priority[0x7fff71001af0] ...
Read now
Unlock full access