• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xnu-2782.1.97/iokit/IOKit/

Lines Matching refs:event

58     @abstract Abstract class for all work-loop event sources.
60 event sources must inherit from if an IOWorkLoop is to receive events from them.
62 An event source can represent any event that should cause the work-loop of a
63 device to wake up and perform work. Two examples of event sources are the
69 work-loop, and the chain of event sources should be used to walk the possible
70 event sources and demultipex them. Note a particular instance of an event
75 The IOEventSource makes no attempt to maintain the consistency of its internal data across multi-threading. It is assumed that the user of these basic tools will protect the data that these objects represent in some sort of device wide instance lock. For example the IOWorkLoop maintains the event chain by using an IOCommandGate and thus single threading access to its state.
80 checkForWork() is the key method in this class. It is called by some work-loop when convienient and is expected to evaluate its internal state and determine if an event has occurred since the last call. In the case of an event having occurred then the instance defined target(owner)/action will be called. The action is stored as an ordinary C function pointer but the first parameter is always the owner. This means that a C++ member function can be used as an action function though this depends on the ABI.
82 Although the eventChainNext variable contains a reference to the next event source in the chain this reference is not retained. The list 'owner' i.e. the client that creates the event, not the work-loop, is expected to retain the source.
96 As the all event sources require an action and it has to be stored somewhere
111 The next event source in the event chain. nil at end of chain. */
114 /*! @var owner The owner object called when an event has been delivered. */
118 The action method called when an event has been delivered */
122 Is this event source enabled to deliver requests to the work-loop. */
125 /*! @var workLoop What is the work-loop for this event source. */
149 Owner of this instance of an event source. Used as the first parameter
155 that gets called when this event source has outstanding work. It will usually
171 If this event source never performs any work (e.g. IOCommandGate), this
181 Target work-loop of this event source instance. A subclass of
206 int sleepGate(void *event, UInt32 type);
207 int sleepGate(void *event, AbsoluteTime deadline, UInt32 type);
208 void wakeupGate(void *event, bool oneThread);
222 @abstract Enable event source.
229 @abstract Disable event source.