First rough outline of the network client thread. More to be done soon.
This commit is contained in:
@@ -111,3 +111,10 @@ Thread::ShouldTerminate() const
|
||||
return lock.locked();
|
||||
}
|
||||
|
||||
bool
|
||||
Thread::IsRunning() const
|
||||
{
|
||||
boost::mutex::scoped_lock threadLock(m_threadObjMutex);
|
||||
return (m_threadObj.get() != NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,9 @@ protected:
|
||||
// Checks whether termination has been requested.
|
||||
bool ShouldTerminate() const;
|
||||
|
||||
// Checks whether the thread is running.
|
||||
bool IsRunning() const;
|
||||
|
||||
private:
|
||||
|
||||
// Flag specifying whether the application code within the
|
||||
|
||||
Reference in New Issue
Block a user