mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Event loop foolery not necessary with pthreads fix
This commit is contained in:
parent
8ec2e93c56
commit
174ce91ea0
@ -69,17 +69,13 @@ class InternalThread extends \Thread
|
||||
}
|
||||
}
|
||||
|
||||
// Erase the old event loop inherited from the parent thread and create a new one.
|
||||
$loop = Loop\create();
|
||||
Loop\loop($loop);
|
||||
|
||||
// At this point, the thread environment has been prepared so begin using the thread.
|
||||
$channel = new Channel(new DuplexStream($this->socket));
|
||||
|
||||
$coroutine = new Coroutine($this->execute($channel));
|
||||
$coroutine->done();
|
||||
|
||||
$loop->run();
|
||||
Loop\run();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user