Rev 1647 | Rev 1740 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1647 | Rev 1651 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | #include "Timer.h" |
21 | #include "Timer.h" |
| 22 | 22 | ||
| 23 | #include <v8-debug.h> |
23 | #include <v8-debug.h> |
| 24 | #include <stdio.h> |
24 | #include <stdio.h> |
| 25 | 25 | ||
| 26 | #include <boost/concept_check.hpp> |
- | |
| 27 | #include <boost/lexical_cast.hpp> |
26 | #include <boost/lexical_cast.hpp> |
| 28 | 27 | ||
| 29 | #include "vm/Manager.h" |
28 | #include "vm/Manager.h" |
| 30 | #include "timer/Manager.h" |
29 | #include "timer/Manager.h" |
| 31 | 30 | ||
| Line 144... | Line 143... | ||
| 144 | { |
143 | { |
| 145 | LOG.Error(std::string(__FUNCTION__) + ": To few arguments."); |
144 | LOG.Error(std::string(__FUNCTION__) + ": To few arguments."); |
| 146 | return v8::Boolean::New(false); |
145 | return v8::Boolean::New(false); |
| 147 | } |
146 | } |
| 148 | 147 | ||
| 149 | Timers::iterator it = Timer::timers_.find(args[0]-> |
148 | Timers::iterator it = Timer::timers_.find(args[0]->Uint32Value()); |
| 150 | 149 | ||
| 151 | if (it != Timer::timers_.end()) |
150 | if (it != Timer::timers_.end()) |
| 152 | { |
151 | { |
| 153 | Timer::timers_.erase(it); |
152 | Timer::timers_.erase(it); |
| 154 | } |
153 | } |
| 155 | 154 | ||
| 156 | timer::Manager::Instance()->Cancel(args[0]-> |
155 | timer::Manager::Instance()->Cancel(args[0]->Uint32Value()); |
| 157 | return v8::Undefined(); |
156 | return v8::Undefined(); |
| 158 | } |
157 | } |
| 159 | 158 | ||
| 160 | Value Timer::Export_Sleep(const v8::Arguments& args) |
159 | Value Timer::Export_Sleep(const v8::Arguments& args) |
| 161 | { |
160 | { |