Home
last modified time | relevance | path

Searched refs:SetCallback (Results 1 - 6 of 6) sorted by relevance

/commonlibrary/c_utils/base/include/
H A Dio_event_handler.h50 inline void SetCallback(const EventCallback& cb) in SetCallback() function in OHOS::Utils::IOEventHandler
H A Drefbase.h93 void SetCallback(const RefPtrCallback& callback);
/commonlibrary/c_utils/base/src/
H A Drefbase.cpp199 void RefCounter::SetCallback(const RefPtrCallback& callback) in SetCallback() function in OHOS::RefCounter
420 refs_->SetCallback([this] { this->RefPtrCallback(); }); in RefBase()
431 refs_->SetCallback([this] { this->RefPtrCallback(); }); in RefBase()
466 refs_->SetCallback([this] { this->RefPtrCallback(); }); in operator =()
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_event_test.cpp94 handler->SetCallback(&TestCallback); in HWTEST_F()
137 handler->SetCallback(&TestCallback); in HWTEST_F()
285 SetCallback(std::bind(&TimerFdHandler::TimeOut, this)); in Initialize()
457 handler->SetCallback(nullptr); in HWTEST_F()
865 handler_->SetCallback(std::bind(&TimerEventHandler::TimeOut, this)); in Initialize()
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/
H A Devent_benchmark_test.cpp111 handler->SetCallback(&TestCallback); in SetFdAndCallback()
386 SetCallback(std::bind(&TimerFdHandler::TimeOut, this)); in Initialize()
565 handler->SetCallback(nullptr); in BENCHMARK_F()
1010 handler_->SetCallback(std::bind(&TimerEventHandler::TimeOut, this)); in Initialize()
/commonlibrary/c_utils/base/test/benchmarktest/refbase_benchmark_test/
H A Drefbase_benchmark_test.cpp1721 @tc.desc: Test for SetCallback, RemoveCallback and IsRefPtrValid
1730 // Use the SetCallback method to set a lambda function as a in BENCHMARK_F()
1732 refs->SetCallback([&externalVariable]() { externalVariable = 42; }); in BENCHMARK_F()

Completed in 9 milliseconds