forked from 0ad/0ad
Removed a compile warning and changed scheduler's "tasks to cancel" set to a hash set.
This was SVN commit r3273.
This commit is contained in:
parent
5e0e3c32f3
commit
709d1389da
@ -264,7 +264,7 @@ JSBool RemoveGlobalHandler( JSContext* cx, JSObject* UNUSED(obj), uint argc, jsv
|
||||
// The called function or script executes in the same scope as the
|
||||
// code that called setTimeout (amongst other things, the
|
||||
// 'this' reference is usually maintained)
|
||||
JSBool setTimeout( JSContext* cx, JSObject* obj, uint argc, jsval* argv, jsval* rval )
|
||||
JSBool setTimeout( JSContext* cx, JSObject*, uint argc, jsval* argv, jsval* rval )
|
||||
{
|
||||
REQUIRE_MIN_PARAMS(2, setTimeout);
|
||||
REQUIRE_MAX_PARAMS(3, setTimeout);
|
||||
|
@ -67,7 +67,7 @@ struct CScheduler : public Singleton<CScheduler>
|
||||
std::list<CJSProgressTimer*> progressTimers;
|
||||
int m_nextTaskId;
|
||||
bool m_abortInterval;
|
||||
std::set<int> tasksToCancel;
|
||||
STL_HASH_SET<int> tasksToCancel;
|
||||
|
||||
CScheduler();
|
||||
int pushTime( size_t delay, const CStrW& fragment, JSObject* operateOn = NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user