Home
last modified time | relevance | path

Searched refs:Closure (Results 1 – 15 of 15) sorted by relevance

/system/ulib/async/
A Dtask.cpp14 RetainedTask(fbl::Closure handler, zx::time deadline) in RetainedTask()
16 handler(static_cast<fbl::Closure&&>(handler)) {}
18 fbl::Closure handler;
30 zx_status_t PostTask(async_dispatcher_t* dispatcher, fbl::Closure handler) { in PostTask()
31 return PostTaskForTime(dispatcher, static_cast<fbl::Closure&&>(handler), in PostTask()
35 zx_status_t PostDelayedTask(async_dispatcher_t* dispatcher, fbl::Closure handler, zx::duration dela… in PostDelayedTask()
36 return PostTaskForTime(dispatcher, static_cast<fbl::Closure&&>(handler), in PostDelayedTask()
40 zx_status_t PostTaskForTime(async_dispatcher_t* dispatcher, fbl::Closure handler, zx::time deadline… in PostTaskForTime()
41 auto* task = new internal::RetainedTask(static_cast<fbl::Closure&&>(handler), deadline); in PostTaskForTime()
108 TaskClosure::TaskClosure(fbl::Closure handler) in TaskClosure()
/system/utest/fit/
A Dfunction_tests.cpp10 using Closure = void(); typedef
99 Closure* fptr = nullptr; in closure()
104 EmptyFunction<Closure> empty; in closure()
595 fit::function<Closure> fnull; in sharing()
606 fit::function<Closure> finline = in sharing()
639 fit::function<Closure> fheap = in sharing()
672 fit::inline_function<Closure> fbad; in sharing()
721 static_assert(std::is_convertible<Closure, fit::function<Closure>>::value, "");
723 static_assert(std::is_assignable<fit::function<Closure>, Closure>::value, "");
755 RUN_TEST((closure<fit::function<Closure>>))
[all …]
/system/ulib/async/include/lib/async/cpp/
A Dtask.h22 zx_status_t PostTask(async_dispatcher_t* dispatcher, fbl::Closure handler);
31 zx_status_t PostDelayedTask(async_dispatcher_t* dispatcher, fbl::Closure handler, zx::duration dela…
40 zx_status_t PostTaskForTime(async_dispatcher_t* dispatcher, fbl::Closure handler, zx::time deadline…
189 explicit TaskClosure(fbl::Closure handler = nullptr);
192 void set_handler(fbl::Closure handler) { handler_ = std::move(handler); } in set_handler()
198 fbl::Closure handler_;
/system/ulib/trace/include/trace/
A Dobserver.h39 void Start(async_dispatcher_t* dispatcher, fbl::Closure callback);
49 fbl::Closure callback_;
/system/utest/fbl/
A Dfunction_tests.cpp13 using Closure = void(); typedef
46 Closure* fptr = nullptr; in closure()
51 EmptyFunction<Closure> empty; in closure()
475 fbl::SizedFunction<Closure, sizeof(empty)> fempty(std::move(empty)); in sized_function_size_bounds()
487 fbl::SizedFunction<Closure, sizeof(big)> fbig(std::move(big)); in sized_function_size_bounds()
526 fbl::InlineFunction<Closure, sizeof(big)> fbig(std::move(big)); in inline_function_size_bounds()
566 void implicit_construction_helper(fbl::Closure closure) {} in implicit_construction_helper()
726 RUN_TEST((closure<fbl::Function<Closure>>))
728 RUN_TEST((closure<fbl::SizedFunction<Closure, 0u>>))
730 RUN_TEST((closure<fbl::SizedFunction<Closure, HugeCallableSize>>))
[all …]
/system/ulib/minfs/include/minfs/
A Dminfs.h54 fbl::Closure on_unmount);
/system/ulib/blobfs/include/blobfs/
A Dblobfs.h164 void SetUnmountCallback(fbl::Closure closure) { on_unmount_ = std::move(closure); } in SetUnmountCallback()
281 fbl::Closure on_unmount_ = {};
290 const MountOptions& options, zx::channel root, fbl::Closure on_unmount);
/system/ulib/trace/
A Dobserver.cpp20 void TraceObserver::Start(async_dispatcher_t* dispatcher, fbl::Closure callback) { in Start()
/system/utest/trace/
A Dengine_tests.cpp37 auto closure = static_cast<fbl::Closure*>(arg); in RunClosure()
43 void RunThread(fbl::Closure closure) { in RunThread()
46 new fbl::Closure(std::move(closure))); in RunThread()
/system/ulib/minfs/
A Dminfs-private.h200 void SetUnmountCallback(fbl::Closure closure) { on_unmount_ = std::move(closure); } in SetUnmountCallback()
314 fbl::Closure on_unmount_{};
A Dminfs.cpp869 fbl::Closure on_unmount) { in MountAndServe()
/system/ulib/fbl/include/fbl/
A Dfunction.h458 using Closure = fbl::Function<void()>;
/system/utest/async-testutils/
A Dtest_loop_tests.cpp24 void InitWait(async::Wait* wait, fbl::Closure closure, const zx::event& event, in InitWait()
/system/utest/async-loop/
A Dloop_tests.cpp178 void set_finish_callback(fbl::Closure callback) { in set_finish_callback()
185 fbl::Closure finish_callback_;
/system/ulib/blobfs/
A Dblobfs.cpp759 const MountOptions& options, zx::channel root, fbl::Closure on_unmount) { in Mount()

Completed in 32 milliseconds