« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 7 of about 7 for SyncMutex (0.001 sec.)
SyncMutex::__construct — Constructs a new SyncMutex object | PHP 8.3 11796
SyncMutex::__construct (PECL sync >= 1.0.0) SyncMutex::__construct — Constructs a new SyncMutex object 説明 public function SyncMutex::__construct ( string $name = ? ) Constructs a named or unnamed countable mutex. パラメータ name The name ... urrent user that the process is running as or an exception will be thrown with a meaningless error message. 戻り値 The new SyncMutex object. エラー / 例外 An exception is thrown if the mutex cannot be created or opened. 例 例1 SyncMutex::__construct() nam ... ed mutex with lock timeout example <?php $mutex = new SyncMutex ( "UniqueName" ); if (! $mutex -> lock ( 3000 )) { echo "Unable to lock mutex." ; exit(); } /* ... */ $mutex -> unlock (); ... ?> 例2 SyncMutex::__construct() unnamed mutex example <?php $mutex = new SyncMutex (); $mutex -> lock (); /* ... */ $mutex -> unlock (); ?> ...
https://man.mtool.work/php/8.3/syncmutex.construct.html
SyncMutex::unlock — Unlocks the mutex | PHP 8.3 10287
SyncMutex::unlock (PECL sync >= 1.0.0) SyncMutex::unlock — Unlocks the mutex 説明 public function SyncMutex::unlock ( bool $all = false ): bool Decreases the internal counter of a SyncMutex object. When the internal counter reaches zero, th ... al counter to zero and therefore release the lock. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 SyncMutex::unlock() example <?php $mutex = new SyncMutex ( "UniqueName" ); $mutex -> lock (); /* ... */ $mutex -> unlock (); ?> 参考 ... SyncMutex::lock() - Waits for an exclusive lock 他のマニュアルの関連ページ Linux JM pthread_cond_init(3) Linux JM pthread_cond_broad ...
https://man.mtool.work/php/8.3/syncmutex.unlock.html
SyncMutex::lock — Waits for an exclusive lock | PHP 8.3 10196
SyncMutex::lock (PECL sync >= 1.0.0) SyncMutex::lock — Waits for an exclusive lock 説明 public function SyncMutex::lock ( int $wait = -1 ): bool Obtains an exclusive lock on a SyncMutex object. If the lock is already acquired, then this inc ... for the exclusive lock. A value of -1 is infinite. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 SyncMutex::lock() example <?php $mutex = new SyncMutex ( "UniqueName" ); if (! $mutex -> lock ( 3000 )) { echo "Unable to lock mutex ... ." ; exit(); } /* ... */ $mutex -> unlock (); ?> 参考 SyncMutex::unlock() - Unlocks the mutex 他のマニュアルの関連ページ Linux JM pthread_cond_init(3) Linux JM pthread_cond_timedwait(3) ...
https://man.mtool.work/php/8.3/syncmutex.lock.html
The SyncMutex class | PHP 8.3 9506
The SyncMutex class (PECL sync >= 1.0.0) はじめに A cross-platform, native implementation of named and unnamed countable mutex objects. A mutex is a mutual exclusion object that restricts access to a shared resource (e.g. a file) to a singl ... x is unlocked as soon as it goes out of scope or is unlocked the same number of times that it was locked. クラス概要 class SyncMutex { /* メソッド */ public function __construct ( string $name = ? ) public function lock ( int $wait = -1 ): bool public fun ... ction unlock ( bool $all = false ): bool } 目次 SyncMutex::__construct — Constructs a new SyncMutex object SyncMutex::lock — Waits for an exclusive lock SyncMutex::unlock — Unlocks ...
https://man.mtool.work/php/8.3/class.syncmutex.html
Sync | PHP 8.3 8633
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 ... nsistent state until the next reboot or a system administrator cleans up the mess. インストール/設定 要件 インストール手順 SyncMutex — The SyncMutex class SyncMutex::__construct — 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 SyncSema ...
https://man.mtool.work/php/8.3/book.sync.html
プロセス制御 | PHP 8.3 6725
プロセス制御 Eio インストール/設定 定義済み定数 例 Eio 関数 Ev インストール/設定 例 ウォッチャー ウォッチャーのコールバック Periodic ウォッチャーの操作モード Ev — Ev クラス EvCheck — EvCheck クラス EvChild — EvChild クラス EvEmbed — EvEmbed ... emory — SysvSharedMemory クラス 共有メモリ インストール/設定 例 共有メモリ関数 Shmop — Shmop クラス Sync インストール/設定 SyncMutex — The SyncMutex class SyncSemaphore — The SyncSemaphore class SyncEvent — The SyncEvent class SyncReaderWriter — The SyncR ...
https://man.mtool.work/php/8.3/refs.fileprocess.process.html
The SyncSharedMemory class | PHP 8.3 6397
The SyncSharedMemory class (PECL sync >= 1.1.0) はじめに A cross-platform, native, consistent implementation of named shared memory objects. Shared memory lets two separate processes communicate without the need for complex pipes or sockets ... integer-based shared memory implementations for PHP. Named shared memory is an alternative. Synchronization objects (e.g. SyncMutex) are still required to protect most uses of shared memory. クラス概要 class SyncSharedMemory { /* メソッド */ public funct ...
https://man.mtool.work/php/8.3/class.syncsharedmemory.html
PREV 1 NEXT