DelegateJobNotification

ditto

Constructors

this
this(void delegate() resume_job, void delegate() suspend_job)

Constructor. Initializes DelegateJobNotification.

Members

Functions

initialise
typeof(this) initialise(void delegate() resume_job, void delegate() suspend_job)

Initialization method. Initializes ManualJobNotification (separated from constructor for convenient use in reusable pool).

wait_
void wait_()

Cedes the control from the suspendable job, waiting for the aio operation to be done.

wake_
void wake_()

Yields the control to the suspended job, indicating that the aio operation has been done.

Inherited Members

From JobNotification

wake_
void wake_()

Yields the control to the suspendable job, indicating that the aio operation has been done.

wait_
void wait_()

Cedes the control from the suspendable job, waiting for the aio operation to be done. Implementation is defined by the concrete classes.

wait
void wait(Job* job, typeof(this.remove_dg) remove_dg)

Cedes the control from the suspendable job, waiting for the aio operation to be done. Called by AsyncIO framework internally.

register
void register(Job* job, typeof(this.remove_dg) remove_dg)

Registers the Job instance with this job notification and sets up removal delegate.

unregister
void unregister()

Detaches the Job instance from this JobNotification (the opposite of register).

wake
void wake()

Yields the control to the suspended job, indicating that the aio operation has been done. Called by the AsyncIO framework internally.

discardResults
void discardResults()

Should be called by the concrete classes to inform the AIO that results of this operation are no longer needed.

Meta