Searched refs:CallbackBase (Results 1 - 2 of 2) sorted by relevance

/frameworks/ml/nn/runtime/
H A DCallbacks.cpp26 CallbackBase::CallbackBase() : mNotified(false) {} function in class:android::hardware::neuralnetworks::V1_0::implementation::CallbackBase
28 CallbackBase::~CallbackBase() {
29 // Note that we cannot call CallbackBase::join_thread from here:
30 // CallbackBase is intended to be reference counted, and it is possible that
40 void CallbackBase::wait() {
46 bool CallbackBase::on_finish(std::function<bool(void)> post_work) {
49 LOG(ERROR) << "CallbackBase::on_finish -- a post-work function has already been bound to "
54 LOG(ERROR) << "CallbackBase
[all...]
H A DCallbacks.h45 * The CallbackBase class is used internally by the NeuralNetworks runtime to
57 * The CallbackBase class implements some of the base synchronization common to
59 * callback class must inherit from CallbackBase as well as the HIDL callback
66 class CallbackBase { class in namespace:android::hardware::neuralnetworks::V1_0::implementation
68 CallbackBase();
69 ~CallbackBase();
72 * CallbackBase::wait blocks until notify has been called on the callback
78 * CallbackBase::wait_for blocks until notify has been called on the
90 * CallbackBase::on_finish binds a function to the callback object. This
91 * bound function will be executed when CallbackBase
[all...]

Completed in 58 milliseconds