git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 26. The Reload() function declaration added.
[stg.git]
/
projects
/
stargazer
/
eventloop.h
diff --git
a/projects/stargazer/eventloop.h
b/projects/stargazer/eventloop.h
index 71602795626fdc82b40e703781e955eb9f4fcb3d..0e7981421ea289858b31beda001e859d707e7358 100644
(file)
--- a/
projects/stargazer/eventloop.h
+++ b/
projects/stargazer/eventloop.h
@@
-12,7
+12,7
@@
class EVENT_LOOP : private NONCOPYABLE,
public:
bool Start();
bool Stop();
public:
bool Start();
bool Stop();
- bool IsRunning() const { return _running; }
;
+ bool IsRunning() const { return _running; }
template <class ACTIVE_CLASS, typename DATA_TYPE>
void Enqueue(ACTIVE_CLASS & ac,
template <class ACTIVE_CLASS, typename DATA_TYPE>
void Enqueue(ACTIVE_CLASS & ac,
@@
-44,8
+44,8
@@
class EVENT_LOOP_SINGLETON : private NONCOPYABLE
static EVENT_LOOP * _instance;
static void CreateInstance();
static EVENT_LOOP * _instance;
static void CreateInstance();
- EVENT_LOOP_SINGLETON() {}
;
- ~EVENT_LOOP_SINGLETON() {}
;
+ EVENT_LOOP_SINGLETON() {}
+ ~EVENT_LOOP_SINGLETON() {}
};
template <class ACTIVE_CLASS, typename DATA_TYPE>
};
template <class ACTIVE_CLASS, typename DATA_TYPE>
@@
-53,7
+53,7
@@
void EVENT_LOOP::Enqueue(ACTIVE_CLASS & ac,
typename ACTOR<ACTIVE_CLASS, DATA_TYPE>::TYPE a,
DATA_TYPE d)
{
typename ACTOR<ACTIVE_CLASS, DATA_TYPE>::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
// Add new action
ACTIONS_LIST::Enqueue(ac, a, d);
// Signal about new action