Home | History | Annotate | Download | only in kernels

Lines Matching defs:Closure

45   void Acquire(std::function<void()> closure) {
50 closures_.push_back(std::move(closure));
54 next = std::move(closure);
112 // No need to Unref critical_section; the Closure below will take
115 auto* execution = new Closure{std::move(done), c, critical_section, &func_};
120 class Closure {
131 explicit Closure(AsyncOpKernel::DoneCallback done, OpKernelContext* ctx,
139 ~Closure();
160 void ExecuteInCriticalSectionOp::Closure::ExecuteFunction() {
196 void ExecuteInCriticalSectionOp::Closure::DoneAndDelete(const Status& status) {
224 ExecuteInCriticalSectionOp::Closure::~Closure() {
226 << "Initialized closure destroyed without calling Done";