
25 Jan
2008
25 Jan
'08
3:25 p.m.
hp.shen@hyaptech.com wrote: I can't see exactly why you get an error, but here are some observations:
ThreadWrapper(unsigned delySec=0) { delySec = delySec;
I think you meant m_delySec = delySec.
m_pause = false; m_stop = false; }
What's wrong with: ThreadWrapper(unsigned delaySec=0): m_stop(false), m_pause(false), m_delaySec(delaySec) {}
virtual void stop() { boost::mutex::scoped_lock lock(m_mutex); m_stop=true; m_cond.notify_one();
Maybe you want to join the thread here?
}
Phil.