Rev 1619 | Rev 1646 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1619 | Rev 1625 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | class Timer : public Plugin |
36 | class Timer : public Plugin |
| 37 | { |
37 | { |
| 38 | public: |
38 | public: |
| 39 | typedef boost::shared_ptr<Timer> Pointer; |
39 | typedef boost::shared_ptr<Timer> Pointer; |
| 40 | 40 | ||
| 41 | Timer(); |
41 | Timer(boost::asio::io_service& io_service); |
| 42 | virtual ~Timer(); |
42 | virtual ~Timer(); |
| 43 | 43 | ||
| 44 | void InitializeDone(); |
44 | void InitializeDone(); |
| 45 | 45 | ||
| 46 | private: |
46 | private: |
| Line 48... | Line 48... | ||
| 48 | static logging::Logger LOG; |
48 | static logging::Logger LOG; |
| 49 | 49 | ||
| 50 | static Timers timers_; |
50 | static Timers timers_; |
| 51 | 51 | ||
| 52 | void SlotOnTimeout(timer::TimerId timer_id, bool repeat); |
52 | void SlotOnTimeout(timer::TimerId timer_id, bool repeat); |
| - | 53 | ||
| - | 54 | void SlotOnTimeoutHandler(timer::TimerId timer_id, bool repeat); |
|
| 53 | 55 | ||
| 54 | static Value Export_StartTimer(const v8::Arguments& args); |
56 | static Value Export_StartTimer(const v8::Arguments& args); |
| 55 | static Value Export_ClearTimer(const v8::Arguments& args); |
57 | static Value Export_ClearTimer(const v8::Arguments& args); |
| - | 58 | static Value Export_Sleep(const v8::Arguments& args); |
|
| 56 | }; |
59 | }; |
| 57 | 60 | ||
| 58 | }; // namespace plugin |
61 | }; // namespace plugin |
| 59 | }; // namespace vm |
62 | }; // namespace vm |
| 60 | }; // namespace atom |
63 | }; // namespace atom |