« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 11 for mutex (0.001 sec.)
SyncMutex::__construct — Constructs a new SyncMutex object | PHP 8.3 13336
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 ... of the mutex if this is a named mutex object. 注意 : If the name already exists, it must be able to be opened by the current 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 ...
https://man.mtool.work/php/8.3/syncmutex.construct.html
The SyncMutex class | PHP 8.3 10669
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 ... e instance. Countable mutexes acquire the mutex a single time and internally track the number of times the mutex is locked. The mutex is unlocked as s ... oon 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
SyncMutex::lock — Waits for an exclusive lock | PHP 8.3 10082
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 ... 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) Lin ...
https://man.mtool.work/php/8.3/syncmutex.lock.html
SyncMutex::unlock — Unlocks the mutex | PHP 8.3 9531
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 ... ounter 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
エラーコード | PHP 8.3 8179
エラーコード ( xml_parse() により返されるものとして) XMLエラーコードとして次のような定数が定義されています。: XML_ERROR_NONE XML_ERROR_NO_MEMORY XML_ERROR_SYNTAX XML_ERROR_NO_ELEMENTS XML_ERROR_INVALID_TOKEN XML_ERROR_UNCLOSED_TOKEN XML_ERR ... CLOSED_CDATA_SECTION XML_ERROR_EXTERNAL_ENTITY_HANDLING 他のマニュアルの関連ページ Linux JM compile_et(1) Linux JM pthread_mutex_destroy(3) Linux JM pthread_mutex_lock(3) Python urllib2 Linux JM _syscall(2) Linux JM com_err(3) ...
https://man.mtool.work/php/8.3/xml.error-codes.html
Sync | PHP 8.3 7948
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 ... tent 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
Swoole\Channel::__construct — Construct a Swoole Channel | PHP 8.3 7681
Swoole\Channel::__construct (PECL swoole >= 1.9.0) Swoole\Channel::__construct — Construct a Swoole Channel 説明 public function Swoole\Channel::__construct ( string $size ) Swoole channel is memory data structure works like Chan in Golang, ... implemented based on shared memory and mutex locks. It can be used as high performance message queue in memory. Construct a swoole channel with a fixed size. The minim ...
https://man.mtool.work/php/8.3/swoole-channel.construct.html
The parallel\Sync class | PHP 8.3 7628
The parallel\Sync class (1.1.0) Low Level Synchronization The parallel\Sync class provides access to low level synchronization primitives, mutex, condition variables, and allows the implementation of semaphores. Synchronization for most app ...
https://man.mtool.work/php/8.3/class.parallel-sync.html
The SyncSemaphore class | PHP 8.3 7628
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 ... m mutexes in that they can allow more than one instance to access a resource at one time while a mutex only allows one instance at ...
https://man.mtool.work/php/8.3/class.syncsemaphore.html
定義済み定数 | PHP 8.3 7628
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 SWOOLE_VERSION ( string ) Swoole version. SWOOLE_VERSION_ID ( int ) Swoole ve ... ( int ) Coroutine has been bound. SWOOLE_ERROR_CO_HAS_BEEN_DISCARDED ( int ) Coroutine has been discarded. SWOOLE_ERROR_CO_MUTEX_DOUBLE_UNLOCK ( int ) Coroutine mutex double unlock. SWOOLE_ERROR_CO_BLOCK_OBJECT_LOCKED ( int ) Coroutine block object lo ... USY ( int ) Process is busy. SWOOLE_WORKER_IDLE ( int ) Process is idle. SWOOLE_WORKER_EXIT ( int ) Process exited. SWOOLE_MUTEX ( int ) Mutex lock. SWOOLE_RWLOCK ( int ) RW lock. SWOOLE_SPINLOCK ( int ) Spin lock. SWOOLE_CORO_MAX_NUM_LIMIT ( int ) Ma ...
https://man.mtool.work/php/8.3/swoole.constants.html
PREV 1 2 NEXT