« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 18 for semaphore (0.001 sec.)
Constructs a new SyncSemaphore object 11135
« SyncSemaphore SyncSemaphore::lock » PHP Manual SyncSemaphore Constructs a new SyncSemaphore object 検索 SyncSemaphore::__construct (PECL sync >= 1.0.0) SyncSemaphore::__construct — Constructs a new SyncSemaphore object 説明 public functio ... n SyncSemaphore::__construct ( string $name = ? , int $initialval = 1 , bool $autounlock = true ) Constructs a named or unnamed semaphore. ... パラメータ name The name of the semaphore if this is a named semaphore object. 注意 : If the name already exists, it must be able to be opened by the current user t ... process is running as or an exception will be thrown with a meaningless error message. initialval The initial value of the semaphore. This is the number of locks that may be obtained. autounlock Specifies whether or not to automatically unlock the semapho ...
https://man.mtool.work/php/8.3/syncsemaphore.construct.html
Constructs a new SyncSemaphore object 11101
« SyncSemaphore SyncSemaphore::lock » PHP Manual SyncSemaphore Constructs a new SyncSemaphore object 検索 SyncSemaphore::__construct (PECL sync >= 1.0.0) SyncSemaphore::__construct — Constructs a new SyncSemaphore object 説明 public functio ... n SyncSemaphore::__construct ( string $name = ? , int $initialval = 1 , bool $autounlock = true ) Constructs a named or unnamed semaphore. ... パラメータ name The name of the semaphore if this is a named semaphore object. 注意 : If the name already exists, it must be able to be opened by the current user t ... process is running as or an exception will be thrown with a meaningless error message. initialval The initial value of the semaphore. This is the number of locks that may be obtained. autounlock Specifies whether or not to automatically unlock the semapho ...
https://man.mtool.work/php/8.3/syncsemaphore.construct.html
Decreases the count of the semaphore or waits 10741
« SyncSemaphore::__construct SyncSemaphore::unlock » PHP Manual SyncSemaphore Decreases the count of the semaphore or waits 検索 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 semaphore becomes non-zero ... . パラメータ wait The number of milliseconds to 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 semaphor ...
https://man.mtool.work/php/8.3/syncsemaphore.lock.html
Decreases the count of the semaphore or waits 10741
« SyncSemaphore::__construct SyncSemaphore::unlock » PHP Manual SyncSemaphore Decreases the count of the semaphore or waits 検索 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 semaphore becomes non-zero ... . パラメータ wait The number of milliseconds to 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 semaphor ...
https://man.mtool.work/php/8.3/syncsemaphore.lock.html
Increases the count of the semaphore 10620
« SyncSemaphore::lock SyncEvent » PHP Manual SyncSemaphore Increases the count of the semaphore 検索 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. パラメータ prevcount Returns the previous count of the semaphore. 戻り値 成功した場合に true を、失敗した場合に fa ... lse を返します。 例 例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 w ...
https://man.mtool.work/php/8.3/syncsemaphore.unlock.html
Increases the count of the semaphore 10586
« SyncSemaphore::lock SyncEvent » PHP Manual SyncSemaphore Increases the count of the semaphore 検索 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. パラメータ prevcount Returns the previous count of the semaphore. 戻り値 成功した場合に true を、失敗した場合に fa ... lse を返します。 例 例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 w ...
https://man.mtool.work/php/8.3/syncsemaphore.unlock.html
The SyncSemaphore class 8510
« SyncMutex::unlock SyncSemaphore::__construct » PHP Manual Sync The SyncSemaphore class 検索 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 from mutexes in that they can allow more than one instance to access a resource at one time while a mutex only all ... ows 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
The SyncSemaphore class 8459
« SyncMutex::unlock SyncSemaphore::__construct » PHP Manual Sync The SyncSemaphore class 検索 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 from mutexes in that they can allow more than one instance to access a resource at one time while a mutex only all ... ows 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
セマフォを得る 7789
« msg_stat_queue sem_get » PHP Manual セマフォ関数 セマフォを得る 検索 sem_acquire (PHP 4, PHP 5, PHP 7, PHP 8) sem_acquire — セマフォを得る 説明 function sem_acquire ( SysvSemaphore $semaphore , bool $non_blocking = false ): bool sem_acqui ... ロセスにより獲得された全てのセマフォのうち、 明示的に解放されていないものが自動的に解放され、警告が表示されます。 パラメータ semaphore semaphore はセマフォのリソースで、 sem_get() によって得られます。 non_blocking セマフォが確保できるまでプロセスを待たせたく ... 時に false を返します。 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 8.0.0 引数 semaphore は、 SysvSemaphore クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていまし ... た。 参考 sem_get() - セマフォ ID を得る sem_release() - セマフォを解放する 関連キーワード: セマフォ sem 場合 acquire semaphore 確保 get false 解放 SysvSemaphore bool non blocking ブロック 獲得 リソース true バージョン 期待 msg ...
https://man.mtool.work/php/8.3/function.sem-acquire.html
セマフォを得る 7755
« msg_stat_queue sem_get » PHP Manual セマフォ関数 セマフォを得る 検索 sem_acquire (PHP 4, PHP 5, PHP 7, PHP 8) sem_acquire — セマフォを得る 説明 function sem_acquire ( SysvSemaphore $semaphore , bool $non_blocking = false ): bool sem_acqui ... ロセスにより獲得された全てのセマフォのうち、 明示的に解放されていないものが自動的に解放され、警告が表示されます。 パラメータ semaphore semaphore はセマフォのリソースで、 sem_get() によって得られます。 non_blocking セマフォが確保できるまでプロセスを待たせたく ... 時に false を返します。 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 8.0.0 引数 semaphore は、 SysvSemaphore クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていまし ... た。 参考 sem_get() - セマフォ ID を得る sem_release() - セマフォを解放する 関連キーワード: セマフォ acquire semaphore 確保 解放 SysvSemaphore blocking ブロック 獲得 リソース 期待 stat queue aquire 永久 リクエスト 明示 自動的 即時 成功 履歴 ...
https://man.mtool.work/php/8.3/function.sem-acquire.html
PREV 1 2 NEXT