Description
The UsesExecuteSuspend method must return true if this device ever calls the SuspendTimesliceExecution method on the IDeviceContext object associated with this device. If the device attempts to call the SuspendTimesliceExecution method when it has not returned true from this method, an assertion failure may be triggered by the system.
Note that the return value from this method should be consistent after the device object has been created, and never change, otherwise errors may occur at runtime. The system uses this function as a hint to help it optimize performance.
The Device base class implements this method, and returns false by default. If a device derives from this base class, it doesn't need to implement this method unless it needs to call the SuspendTimesliceExecution method.
Usage
virtual bool UsesExecuteSuspend() const;
Return value
- [bool]
- True if the device may call the SuspendTimesliceExecution method at any point during its lifetime, false otherwise.