OSAction
An object that executes your driver’s custom behavior.
Declaration
class OSAction;Mentioned in
Overview
An OSAction object encapsulates a custom method of your driver, and the object that contains that method. When configuring your driver, you use action objects in places where the system must call your custom code asynchronously. For example, a timer dispatch source notifies its action object when the specified time elapses. Because actions execute asynchronously, store any state information your action requires in the object you specify at configuration time.
Create action objects using the method generated by the TYPE macro. When you append that macro to a method declaration in your .iig file, the compiler automatically generates a method with the name CreateAction. For example, if the name of your custom method is HandleTimer, the name of the system-generated method is CreateActionHandleTimer. This generated method creates an action object already configured to call your custom method.