X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/687631532197750696d35aa12c40406b04fb878d..71d9db6cff1be807f6d010467b58efb95a6a61aa:/projects/stargazer/eventloop.h?ds=inline diff --git a/projects/stargazer/eventloop.h b/projects/stargazer/eventloop.h index 71602795..0e798142 100644 --- a/projects/stargazer/eventloop.h +++ b/projects/stargazer/eventloop.h @@ -12,7 +12,7 @@ class EVENT_LOOP : private NONCOPYABLE, public: bool Start(); bool Stop(); - bool IsRunning() const { return _running; }; + bool IsRunning() const { return _running; } template void Enqueue(ACTIVE_CLASS & ac, @@ -44,8 +44,8 @@ class EVENT_LOOP_SINGLETON : private NONCOPYABLE static EVENT_LOOP * _instance; static void CreateInstance(); - EVENT_LOOP_SINGLETON() {}; - ~EVENT_LOOP_SINGLETON() {}; + EVENT_LOOP_SINGLETON() {} + ~EVENT_LOOP_SINGLETON() {} }; template @@ -53,7 +53,7 @@ void EVENT_LOOP::Enqueue(ACTIVE_CLASS & ac, typename ACTOR::TYPE a, DATA_TYPE d) { -STG_LOCKER lock(&_mutex, __FILE__, __LINE__); +STG_LOCKER lock(&_mutex); // Add new action ACTIONS_LIST::Enqueue(ac, a, d); // Signal about new action