git-svn-id: svn://db.shs.com.ru/pip@836 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -157,7 +157,15 @@ public:
|
||||
void needLockRun(bool need) {lockRun = need;}
|
||||
EVENT_HANDLER0(void, lock) {mutex_.lock();}
|
||||
EVENT_HANDLER0(void, unlock) {mutex_.unlock();}
|
||||
|
||||
|
||||
//! \brief Returns if timer should exec \a maybeCallQueuedEvents() at every tick.
|
||||
//! By default \b true
|
||||
bool isCallQueuedEvents() const {return callEvents;}
|
||||
|
||||
//! \brief If set timer exec \a maybeCallQueuedEvents() at every tick.
|
||||
//! By default \b true
|
||||
void setCallQueuedEvents(bool yes) {callEvents = yes;}
|
||||
|
||||
//! \brief Add frequency delimiter \b delim with optional delimiter slot \b slot.
|
||||
void addDelimiter(int delim, TimerEvent slot = 0) {delims << Delimiter(slot, delim);}
|
||||
|
||||
@@ -233,7 +241,7 @@ protected:
|
||||
virtual void tick(void * data_, int delimiter) {}
|
||||
|
||||
void * data_t;
|
||||
volatile bool lockRun;
|
||||
volatile bool lockRun, callEvents;
|
||||
PIMutex mutex_;
|
||||
TimerEvent ret_func;
|
||||
TimerImplementation imp_mode;
|
||||
|
||||
Reference in New Issue
Block a user