First rough outline of the network client thread. More to be done soon.

This commit is contained in:
lotodore committed 2007-02-16 00:03:30 +00:00
1 parent 7130405f67
commit b6923b8d38
4 files changed
+127

No files matched your search

+7
View File
@@ -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);
}
+3
View File
@@ -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