Lines Matching refs:operation
18 // This class represents a single asynchronous IO operation while it is being
22 // Other than the actual parameters for the IO operation (including the
26 // operation.
29 // This method signals the controller that this operation is finished, in the
36 // operation to finish it doesn't have to wait for the final task to be
38 // Note that this method is not intended to cancel the actual IO operation or
52 int result_; // Final operation result.
57 // Notifies the controller about the end of the operation, from the background
61 // An event to signal when the operation completes.
68 // of this class is meant to be used to start an asynchronous operation (using
69 // PostXX, exposed by a derived class). This class will post the operation to a
70 // worker thread, hanlde the notification when the operation finishes and
71 // perform the callback on the same thread that was used to start the operation.
79 // 5. IO operation completes
98 // Called on a background thread when |operation| completes.
99 void OnIOComplete(BackgroundIO* operation);
101 // Invokes the users' completion callback at the end of the IO operation.
105 void InvokeCallback(BackgroundIO* operation, bool cancel_task);
108 // This method is called to signal the completion of the |operation|. |cancel|
109 // is true if the operation is being cancelled. This method is called on the
111 virtual void OnOperationComplete(BackgroundIO* operation, bool cancel) = 0;
113 // Signals this object that the derived class just posted the |operation| to
116 void OnOperationPosted(BackgroundIO* operation);
124 bool running_; // True after the first posted operation completes.