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
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 { class in namespace:android::hardware::neuralnetworks::V1_0::implementation
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
[all...]

Completed in 31 milliseconds