| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| * Copyright (c) 2013, Regents of the University of California |
| * BSD license, See the LICENSE file for more information |
| * Author: Zhenkai Zhu <zhenkai@cs.ucla.edu> |
| * Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| class OneTimeTask : public Task |
| OneTimeTask(const Callback &callback, const Tag &tag, const SchedulerPtr &scheduler, double delay); |
| // invoke callback and mark self as invoked and deregister self from scheduler |
| // after reset, the task is marked as un-invoked and can be add to scheduler again, with same delay |
| // if not invoked yet, no effect |
| // this is to deregister itself from scheduler automatically after invoke |
| #endif // EVENT_SCHEDULER_H |