Results of 1 - 6 of about 6 for SyncSemaphore (0.001 sec.)
- SyncSemaphore::__construct — Constructs a new SyncSemaphore object | PHP 8.3 10894
- 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
... oncludes before the object is unlocked, then the underlying semaphore will end up in an inconsistent state. 戻り値 The new SyncSemaphore object. エラー / 例外 An exception is thrown if the semaphore cannot be created or opened. 例 例1 SyncSemaphore::__constru ... ct() example <?php $semaphore = new SyncSemaphore ( "LimitedResource_2clients" , 2 ); if (! $semaphore -> lock ( 3000 )) { echo "Unable to lock semaphore." ; exit(); } /* . ... .. */ $semaphore -> unlock (); ?> 参考 SyncSemaphore::lock() - Decreases the count of the semaphore or waits SyncSemaphore::unlock() - Increases the count of the semaphore 他の ...
-
https://man.mtool.work/php/8.3/syncsemaphore.construct.html
- SyncSemaphore::unlock — Increases the count of the semaphore | PHP 8.3 10455
- 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
... ount Returns the previous count of the semaphore. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 SyncSemaphore::unlock() example <?php $semaphore = new SyncSemaphore ( "LimitedResource_2clients" , 2 ); if (! $semaphore -> lock ( 3000 ... )) { echo "Unable to lock semaphore." ; exit(); } /* ... */ $semaphore -> unlock (); ?> 参考 SyncSemaphore::lock() - Decreases the count of the semaphore or waits 他のマニュアルの関連ページ Linux JM lock(2) Linux JM sem_overview( ...
-
https://man.mtool.work/php/8.3/syncsemaphore.unlock.html
- SyncSemaphore::lock — Decreases the count of the semaphore or waits | PHP 8.3 10272
- 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
... wait for the semaphore. A value of -1 is infinite. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 SyncSemaphore::lock() example <?php $semaphore = new SyncSemaphore ( "LimitedResource_2clients" , 2 ); if (! $semaphore -> lock ( 3000 ) ... ) { echo "Unable to lock semaphore." ; exit(); } /* ... */ $semaphore -> unlock (); ?> 参考 SyncSemaphore::unlock() - Increases the count of the semaphore 他のマニュアルの関連ページ Linux JM sem_overview(7) Linux JM sem_getvalue ...
-
https://man.mtool.work/php/8.3/syncsemaphore.lock.html
- The SyncSemaphore class | PHP 8.3 9450
- The SyncSemaphore class (PECL sync >= 1.0.0) はじめに A cross-platform, native implementation of named and unnamed semaphore objects. A semaphore restricts access to a limited resource to a limited number of instances. Semaphores differ fro
... more than one instance to access a resource at one time while a mutex only allows one instance at a time. クラス概要 class SyncSemaphore { /* メソッド */ public function __construct ( string $name = ? , int $initialval = 1 , bool $autounlock = true ) public f ... unction lock ( int $wait = -1 ): bool public function unlock ( int &$prevcount = ? ): bool } 目次 SyncSemaphore::__construct — Constructs a new SyncSemaphore object SyncSemaphore::lock — Decreases the count of the semaphore or waits S ...
-
https://man.mtool.work/php/8.3/class.syncsemaphore.html
- Sync | PHP 8.3 8189
- Sync はじめに The sync extension introduces cross-platform synchronization objects into PHP. Named and unnamed Mutex, Semaphore, Event, Reader-Writer, and named Shared Memory objects provide OS-level synchronization on both POSIX (e.g. Linu
... ct — Constructs a new SyncMutex object SyncMutex::lock — Waits for an exclusive lock SyncMutex::unlock — Unlocks the mutex SyncSemaphore — The SyncSemaphore class SyncSemaphore::__construct — Constructs a new SyncSemaphore object SyncSemaphore::lock — Decreas ... es the count of the semaphore or waits SyncSemaphore::unlock — Increases the count of the semaphore SyncEvent — The SyncEvent class SyncEvent::__construct — Constructs a new S ...
-
https://man.mtool.work/php/8.3/book.sync.html
- プロセス制御 | PHP 8.3 5538
- プロセス制御 Eio インストール/設定 定義済み定数 例 Eio 関数 Ev インストール/設定 例 ウォッチャー ウォッチャーのコールバック Periodic ウォッチャーの操作モード Ev — Ev クラス EvCheck — EvCheck クラス EvChild — EvChild クラス EvEmbed — EvEmbed
... 共有メモリ インストール/設定 例 共有メモリ関数 Shmop — Shmop クラス Sync インストール/設定 SyncMutex — The SyncMutex class SyncSemaphore — The SyncSemaphore class SyncEvent — The SyncEvent class SyncReaderWriter — The SyncReaderWriter class SyncSharedMemory — ...
-
https://man.mtool.work/php/8.3/refs.fileprocess.process.html
PREV
1
NEXT