ios-samples/DispatchSourceExamples
Brad Umbaugh 3392dd3a8e Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
..
DispatchSourceExamples Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
Screenshots [DispatchSourceExample] Add DispatchSourceExample sample. Sample shows how to handle low-level events with DispatchSource.* nested classes. 2015-04-03 19:48:11 +03:00
DispatchSourceExamples.sln [DispatchSourceExample] Add DispatchSourceExample sample. Sample shows how to handle low-level events with DispatchSource.* nested classes. 2015-04-03 19:48:11 +03:00
Metadata.xml Fix metadata file 2016-09-08 18:00:01 -03:00
README.md [DispatchSourceExample] Add DispatchSourceExample sample. Sample shows how to handle low-level events with DispatchSource.* nested classes. 2015-04-03 19:48:11 +03:00

README.md

Dispatch Source Examples

This sample demonstrates how to create and configure different types of Dispatch Sources. Creating a dispatch source involves creating both the source of the events and the dispatch source itself. This sample cover following types of Dispatch Source:

  • Timer - periodically submit the event handler block to the target queue.
  • Vnode Monitor - monitor the virtual filesystem nodes for state changes.
  • MemoryPressure - monitor the system memory pressure condition for state changes. To test this type of source you need to run sample application on iOS simulator and fire memory warning(Hardware -> Simulate Memory Warning).
  • WriteMonitor - this type monitor file descriptors for available write buffer space.
  • ReadMonitor - monitor file descriptors for pending data.

Build Requirements

Building this sample requires Xcode 5.0 and iOS SDK

Authors

Oleg Demchenko