mirror of
https://github.com/YGGverse/Yo.git
synced 2025-02-05 11:24:20 +00:00
add semaphore namespace prefix
This commit is contained in:
parent
880764aa49
commit
ee074b684a
@ -1,7 +1,12 @@
|
||||
<?php
|
||||
|
||||
// Prevent multi-thread execution
|
||||
$semaphore = sem_get(crc32('yo.cli.document.clean'), 1);
|
||||
$semaphore = sem_get(
|
||||
crc32(
|
||||
__DIR__ . '.yo.cli.document.clean'
|
||||
),
|
||||
1
|
||||
);
|
||||
|
||||
if (false === sem_acquire($semaphore, true))
|
||||
{
|
||||
|
@ -1,7 +1,12 @@
|
||||
<?php
|
||||
|
||||
// Prevent multi-thread execution
|
||||
$semaphore = sem_get(crc32('yo.cli.document.crawl'), 1);
|
||||
$semaphore = sem_get(
|
||||
crc32(
|
||||
__DIR__ . '.yo.cli.document.crawl'
|
||||
),
|
||||
1
|
||||
);
|
||||
|
||||
if (false === sem_acquire($semaphore, true))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user