mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user