Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Apr 15, 2022
1 parent a66fd87 commit 7532cb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions Spawn/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@
* - requires `libuv` extension.
*
* @return \UVLock
* @codeCoverageIgnore
*/
function mutex_lock(): \UVLock
{
Expand All @@ -332,7 +331,6 @@ function mutex_lock(): \UVLock
*
* @param \UVLock $lock
* @return void
* @codeCoverageIgnore
*/
function mutex_unlock(\UVLock $lock)
{
Expand Down
3 changes: 1 addition & 2 deletions Spawn/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function create($tid, callable $task, ...$args): self

if (isset($async->threads[$tid]) && $async->threads[$tid] instanceof \UVAsync) {
\uv_async_send($async->threads[$tid]);
\usleep($async->count() * 300000);
\usleep($async->count() * 70000);
}
}, function () {
});
Expand All @@ -201,7 +201,6 @@ public function create($tid, callable $task, ...$args): self
*/
public function join($tid = null): void
{
\uv_run(self::$uv, \UV::RUN_ONCE);
if (!empty($tid))
while ($this->isRunning($tid)) {
if ($this->hasLoop) {
Expand Down

0 comments on commit 7532cb4

Please sign in to comment.