add semaphores namespace

This commit is contained in:
ghost 2023-08-17 12:55:42 +03:00
parent 0638bc6742
commit d1b115d11c
2 changed files with 4 additions and 4 deletions

View File

@ -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)) {

View File

@ -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)) {