Client thread test version. Ready to connect.

This commit is contained in:
lotodore
2007-02-17 23:44:45 +00:00
parent 6eb192f846
commit 592863ecf5
11 changed files with 478 additions and 23 deletions
+3 -4
View File
@@ -19,10 +19,6 @@
#include "thread.h"
#ifndef NANOSECONDS_PER_SECOND
#define NANOSECONDS_PER_SECOND 1000000000
#endif
// Helper class for thread creation.
class ThreadStarter
{
@@ -66,6 +62,9 @@ Thread::SignalTermination()
bool
Thread::Join(unsigned msecTimeout)
{
if (!IsRunning())
return true;
// Calculate time after timeout
boost::xtime t;
boost::xtime_get(&t, boost::TIME_UTC);