mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 21:44:59 +00:00
add semaphores namespace
This commit is contained in:
parent
0638bc6742
commit
d1b115d11c
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
// Stop cleaner on cli running
|
||||
$semaphore = sem_get(crc32('cli.yggo'), 1);
|
||||
$semaphore = sem_get(crc32('yggo.cli.yggo'), 1);
|
||||
|
||||
if (false === sem_acquire($semaphore, true)) {
|
||||
|
||||
@ -10,7 +10,7 @@ if (false === sem_acquire($semaphore, true)) {
|
||||
}
|
||||
|
||||
// Lock multi-thread execution
|
||||
$semaphore = sem_get(crc32('crontab.cleaner'), 1);
|
||||
$semaphore = sem_get(crc32('yggo.crontab.cleaner'), 1);
|
||||
|
||||
if (false === sem_acquire($semaphore, true)) {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
// Stop crawler on cli running
|
||||
$semaphore = sem_get(crc32('cli.yggo'), 1);
|
||||
$semaphore = sem_get(crc32('yggo.cli.yggo'), 1);
|
||||
|
||||
if (false === sem_acquire($semaphore, true)) {
|
||||
|
||||
@ -10,7 +10,7 @@ if (false === sem_acquire($semaphore, true)) {
|
||||
}
|
||||
|
||||
// Lock multi-thread execution
|
||||
$semaphore = sem_get(crc32('crontab.crawler'), 1);
|
||||
$semaphore = sem_get(crc32('yggo.crontab.crawler'), 1);
|
||||
|
||||
if (false === sem_acquire($semaphore, true)) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user