« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for LimitedResource (0.001 sec.)
SyncSemaphore::lock — Decreases the count of the semaphore or waits | PHP 8.3 10603
SyncSemaphore::lock (PECL sync >= 1.0.0) SyncSemaphore::lock — Decreases the count of the semaphore or waits 説明 public function SyncSemaphore::lock ( int $wait = -1 ): bool Decreases the count of a SyncSemaphore object or waits until the ... 合に true を、失敗した場合に false を返します。 例 例1 SyncSemaphore::lock() example <?php $semaphore = new SyncSemaphore ( "LimitedResource_2clients" , 2 ); if (! $semaphore -> lock ( 3000 )) { echo "Unable to lock semaphore." ; exit(); } /* ... */ $semaphore -> ...
https://man.mtool.work/php/8.3/syncsemaphore.lock.html
SyncSemaphore::unlock — Increases the count of the semaphore | PHP 8.3 10603
SyncSemaphore::unlock (PECL sync >= 1.0.0) SyncSemaphore::unlock — Increases the count of the semaphore 説明 public function SyncSemaphore::unlock ( int &$prevcount = ? ): bool Increases the count of a SyncSemaphore object. パラメータ prevc ... true を、失敗した場合に false を返します。 例 例1 SyncSemaphore::unlock() example <?php $semaphore = new SyncSemaphore ( "LimitedResource_2clients" , 2 ); if (! $semaphore -> lock ( 3000 )) { echo "Unable to lock semaphore." ; exit(); } /* ... */ $semaphore -> ...
https://man.mtool.work/php/8.3/syncsemaphore.unlock.html
SyncSemaphore::__construct — Constructs a new SyncSemaphore object | PHP 8.3 6659
SyncSemaphore::__construct (PECL sync >= 1.0.0) SyncSemaphore::__construct — Constructs a new SyncSemaphore object 説明 public function SyncSemaphore::__construct ( string $name = ? , int $initialval = 1 , bool $autounlock = true ) Construc ... semaphore cannot be created or opened. 例 例1 SyncSemaphore::__construct() example <?php $semaphore = new SyncSemaphore ( "LimitedResource_2clients" , 2 ); if (! $semaphore -> lock ( 3000 )) { echo "Unable to lock semaphore." ; exit(); } /* ... */ $semaphore -> ...
https://man.mtool.work/php/8.3/syncsemaphore.construct.html
PREV 1 NEXT