Lines Matching refs:CallbackBase

45  * The CallbackBase class is used internally by the NeuralNetworks runtime to
61 * The CallbackBase class implements some of the base synchronization common to
63 * callback class must inherit from CallbackBase as well as the HIDL callback
70 class CallbackBase {
72 CallbackBase();
73 ~CallbackBase();
76 * CallbackBase::wait blocks until notify has been called on the callback
82 * CallbackBase::wait_for blocks until notify has been called on the
94 * CallbackBase::on_finish binds a function to the callback object. This
95 * bound function will be executed when CallbackBase::notify is called,
96 * before any calls to wait* return. (Note that CallbackBase::wait_for can
97 * return std::cv_status::timeout before CallbackBase::notify is called for
103 * CallbackBase::on_finish can be called at most once on a given callback
104 * object, and the call to CallbackBase::on_finish must finish before
105 * CallbackBase::notify is called.
108 * CallbackBase::notify is called. Must have a target --
120 * CallbackBase::bind_thread binds a thread to the event for later use by
121 * CallbackBase::join_thread.
125 * Once a thread is bound with CallbackBase::bind_thread, the client code
128 * - CallbackBase::join_thread has been called.
129 * - CallbackBase::wait has been called.
130 * - CallbackBase::wait_for has been called and returned other than
133 * The bound thread shall not call any CallbackBase method with the
134 * exception of CallbackBase::notify, which it must call when the thread has
137 * CallbackBase::bind_thread can be called at most once on a given callback
148 * CallbackBase::join_thread ensures that the thread (if any) bound to this
149 * event with CallbackBase::bind_thread has fully finished and cleaned its
157 * CallbackBase::notify enables all prior and future wait* calls on the
158 * callback object to proceed. The call to CallbackBase::notify happens
162 * to the caller of wait* happens before the call to CallbackBase::notify.
164 * CallbackBase::notify must be called exactly once on a given callback
170 // Same as CallbackBase::join_thread but assumes we already hold a lock on
188 * synchronization behavior, refer to the CallbackBase class.
191 * CallbackBase, and implements the HIDL notify call from
195 class PreparedModelCallback : public CallbackBase, public IPreparedModelCallback {
203 * model, and calls CallbackBase::notify, enabling all prior and future
205 * information on the synchronization behavior, refer to the CallbackBase
261 * more information on the synchronization behavior, refer to the CallbackBase
265 * CallbackBase, and implements the HIDL notify call from
269 class ExecutionCallback : public CallbackBase, public IExecutionCallback {
279 * the CallbackBase class.
320 std::cv_status CallbackBase::wait_for(const std::chrono::duration<Rep,Period>& timeout_duration) {