Results of 1 - 10 of about 102 for lock (0.001 sec.)
- The Swoole\Lock class | PHP 8.3 10106
- The Swoole\Lock class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Lock { /* メソッド */ public function __destruct (): void public function lock (): void public function lock_read (): void public function trylock (): void public
... function trylock_read (): void public function unlock (): void } 目次 Swoole\Lock::__construct — Construct a memory lock. Swoole\Lock::__de ... struct — Destroy a Swoole memory lock. Swoole\Lock::lock — Try to acquire the lock. It will block if the lock is not available. Swoole\Lock::lock_read — Lock a ... read-write lock for reading. Swoole\Lock::trylock — Try to acquire the lock and return straight away even the lock is not available. Swool ...
-
https://man.mtool.work/php/8.3/class.swoole-lock.html
- The Swoole\Coroutine\Lock class | PHP 8.3 10003
- The Swoole\Coroutine\Lock class (No version information available, might only be in Git) はじめに Swoole 6.0.1 introduced a coroutine lock that supports inter-process and inter-thread sharing. This lock is designed with non-blocking behavio
... hen compiled with the --enable-iouring option and the Linux kernel supports the io_uring futex feature, Swoole's coroutine lock implements synchronization using io_uring futex . In this case, coroutines wait for lock wakeups using an efficient queuin ... g mechanism, significantly improving performance. Without io_uring futex , the coroutine lock falls back to an exponential backoff sleep mechanism, where the wait time increases by 2^n milliseconds (n being the numbe ... r of failures) after each failed attempt to acquire the lock. While this approach avoids busy waiting, it introduces additional CPU scheduling overhead and latency. The coroutine lock ...
-
https://man.mtool.work/php/8.3/class.swoole-coroutine-lock.html
- Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary | PHP 8.3 9006
- Swoole\Coroutine\Lock::lock (No version information available, might only be in Git) Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary 説明 public function Swoole\Coroutine\Lock::lock (): bool When executing the lock ope
... ration, if the lock is already held by another coroutine, the current coroutine will actively yield CPU control and enter a suspended state. W ... hen the coroutine holding the lock calls unlock(), the waiting coroutine will be awakened and try to acquire the lock again. パラメータ この関数にはパラメータ ... はありません。 戻り値 Returns true if the lock was acquired successfully, false otherwise. 他のマニュアルの関連ページ Linux JM lock(2) Python asyncio-sync Python a-conce ...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.lock.html
- Swoole\Lock::lock_read — Lock a read-write lock for reading. | PHP 8.3 8929
- Swoole\Lock::lock_read (PECL swoole >= 1.9.0) Swoole\Lock::lock_read — Lock a read-write lock for reading. 説明 public function Swoole\Lock::lock_read (): void Lock a read-write lock for reading. パラメータ この関数にはパラメータはありません
... 。 戻り値 他のマニュアルの関連ページ Python asyncio-sync Linux JM lock(2) Docker 暗号鍵を守るために swarm をロック Linux JM rpc.lockd(8) Linux JM lockd(8) Linux JM fcntl(2) ...
-
https://man.mtool.work/php/8.3/swoole-lock.lock-read.html
- SyncMutex::lock — Waits for an exclusive lock | PHP 8.3 8760
- 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
... rements an internal counter. パラメータ wait The number of milliseconds to wait for the exclusive lock. A value of -1 is infinite. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 SyncMutex::lock() exam ... ple <?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) Linux JM lock(2) Linux JM wait(2) Linux JM posixoptions(7) Docker docker wait ...
-
https://man.mtool.work/php/8.3/syncmutex.lock.html
- Swoole\Lock::lock — Try to acquire the lock. It will block if the lock is not a... 8734
- Swoole\Lock::lock (PECL swoole >= 1.9.0) Swoole\Lock::lock — Try to acquire the lock. It will block if the lock is not available. 説明 public function Swoole\Lock::lock (): void パラメータ この関数にはパラメータはありません。 戻り値 他のマニ
... ュアルの関連ページ Python asyncio-sync Linux JM lock(2) Python synchronization Docker 暗号鍵を守るために swarm をロック Linux JM flock(2) Linux JM lockd(8) ...
-
https://man.mtool.work/php/8.3/swoole-lock.lock.html
- Swoole | PHP 8.3 8696
- Swoole はじめに Swoole is a parallel network communication engine based on asynchronous event-driven and coroutine, written in C++, providing coroutine and high-performance network programming support for PHP. It provides various network se
... せん。 インストール/設定 要件 インストール手順 実行時設定 定義済み定数 Swoole 関数 swoole_async_dns_lookup — Async and non-blocking hostname to IP lookup swoole_async_read — Read file stream asynchronously swoole_async_readfile — Read a file asynchron ... swoole_version — Get the version of Swoole Swoole\Async — The Swoole\Async class Swoole\Async::dnsLookup — Async and non-blocking hostname to IP lookup. Swoole\Async::read — Read file stream asynchronously. Swoole\Async::readFile — Read a file async ... size of memory allocated. Swoole\Buffer::clear — Reset the memory buffer. Swoole\Buffer::__construct — Fixed size memory blocks allocation. Swoole\Buffer::__destruct — Destruct the Swoole memory buffer. Swoole\Buffer::expand — Expand the size of mem ...
-
https://man.mtool.work/php/8.3/book.swoole.html
- EventBuffer::lock — Acquires a lock on buffer | PHP 8.3 8618
- EventBuffer::lock (PECL event >= 1.2.6-beta) EventBuffer::lock — Acquires a lock on buffer 説明 public function EventBuffer::lock (): void Acquires a lock on buffer. Can be used in pair with EventBuffer::unlock() to make a set of operations
... atomic, i.e. thread-safe. Note, it is not needed to lock buffers for individual operations. When locking is enabled(see EventBuffer::enableLocking() ), individual operations on ev ... nt buffers are already atomic. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 参考 EventBuffer::unlock() - Releases lock acquired by EventBuffer::lock 他のマニュアルの関連ページ Linux JM lock(2) Vim ft_raku Linux JM flock(2) ...
-
https://man.mtool.work/php/8.3/eventbuffer.lock.html
- Swoole\Coroutine\Lock::trylock — Attempt to acquire the lock without blocking |... 8618
- Swoole\Coroutine\Lock::trylock (No version information available, might only be in Git) Swoole\Coroutine\Lock::trylock — Attempt to acquire the lock without blocking 説明 public function Swoole\Coroutine\Lock::trylock (): bool When calling
... the lock operation, if the lock is already held by another coroutine, the function will immediately return false without suspending ... the current coroutine or yielding CPU control. This non-blocking design allows the caller to flexibly handle contention situations, such as retrying, giving up, or executing other logi ... c. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the lock was acquired successfully, false if the lock is not available. 他のマニュアルの関連ページ Python asyncio-sync Linux JM loc ...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.trylock.html
- Swoole\Lock::__construct — Construct a memory lock. | PHP 8.3 8618
- Swoole\Lock::__construct (PECL swoole >= 1.9.0) Swoole\Lock::__construct — Construct a memory lock. 説明 public function Swoole\Lock::__construct ( string $type = ? , string $file_lock_location = ? ) Swoole lock is used for data synchroniza
... tion between multiple threads or processes. パラメータ type file_lock_location 他のマニュアルの関連ページ Linux JM lock(2) Python asyncio-sync Docker 暗号鍵を守るために swarm をロック DuckDB M ...
-
https://man.mtool.work/php/8.3/swoole-lock.construct.html