August 2011
Intermediate to advanced
552 pages
23h 48m
English
When dealing with real-world code, you frequently need to interact with time, whether having calls time out after awhile or scheduling things to happen at specific times. GCD calls these times “temporal milestones,” and they are represented by a dispatch_time_t. This type is a “semi-opaque” integer; it has an integer value, but its contents are subject to change. Time can be expressed relative to another time or relative to two distinguished moments in time – now and forever:
static const dispatch_time_t DISPATCH_TIME_NOW = 0; static const dispatch_time_t DISPATCH_TIME_FOREVER = ~0ull;
Use DISPATCH_TIME_FOREVER for an ...
Read now
Unlock full access