Merge in channels from love-experiments

Rewritten love.thread and changed communication
method from weird system before, to channels.

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2012-07-04 17:15:16 +02:00
parent e8ee7671c3
commit 399a6a6614
41 changed files with 1192 additions and 1580 deletions
+4 -4
View File
@@ -109,7 +109,7 @@ private:
// The Pool.
Pool *pool;
class PoolThread: public thread::ThreadBase
class PoolThread: public thread::Threadable
{
protected:
Pool *pool;
@@ -120,13 +120,13 @@ private:
volatile bool finish;
// finish lock
thread::Mutex mutex;
virtual void main();
thread::Mutex *mutex;
public:
PoolThread(Pool *pool);
~PoolThread();
void setFinish();
void threadFunction();
};
PoolThread *poolThread;