« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 10 for locks (0.001 sec.)
Swoole\Channel::__construct — Construct a Swoole Channel | PHP 8.3 11548
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 minimum siz ...
https://man.mtool.work/php/8.3/swoole-channel.construct.html
新しいグローバル定数 | PHP 8.3 10976
新しいグローバル定数 コアで定義済みの定数 PHP_INT_MIN GD IMG_WEBP (PHP 7.0.10 以降) JSON JSON_ERROR_INVALID_PROPERTY_NAME JSON_ERROR_UTF16 LibXML LIBXML_BIGLINES PCRE PREG_JIT_STACKLIMIT_ERROR POSIX POSIX_RLIMIT_AS POSIX_RLIMIT_CORE POSIX_R ... LIMIT_CPU POSIX_RLIMIT_DATA POSIX_RLIMIT_FSIZE POSIX_RLIMIT_LOCKS POSIX_RLIMIT_MEMLOCK POSIX_RLIMIT_MSGQUEUE POSIX_RLIMIT_NICE POSIX_RLIMIT_NOFILE POSIX_RLIMIT_NPROC POSIX_RLIMIT_RSS POSIX ...
https://man.mtool.work/php/8.3/migration70.constants.html
The EventBufferEvent class | PHP 8.3 10404
The EventBufferEvent class (PECL event >= 1.2.6-beta) はじめに Represents Libevent's buffer event. Usually an application wants to perform some amount of data buffering in addition to just responding to events. When we want to write data, f ... close an underlying socket, free an underlying buffer event, etc. EventBufferEvent::OPT_THREADSAFE Automatically allocate locks for the bufferevent, so that it's safe to use from multiple threads. EventBufferEvent::OPT_DEFER_CALLBACKS When this flag ... s . EventBufferEvent::OPT_UNLOCK_CALLBACKS By default, when the bufferevent is set up to be threadsafe, the buffer event's locks are held whenever the any user-provided callback is invoked. Setting this option makes Libevent release the buffer event's ...
https://man.mtool.work/php/8.3/class.eventbufferevent.html
SyncSemaphore::__construct — Constructs a new SyncSemaphore object | PHP 8.3 9850
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 ... tion 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 semaphore at the conclusion of the P ... hp $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 semap ...
https://man.mtool.work/php/8.3/syncsemaphore.construct.html
Yac | PHP 8.3 8706
Yac はじめに Yac (Yet Another Cache) is a lock-free, shared memory user data cache, and can be used to replace APC or local memcached. Yac stores data in shared memory, which makes it visible to every PHP worker of the same machine without ... s communication. Instead of locking, Yac relies on atomic slot updates plus a few collision probes, so a cache miss never blocks a request, and a concurrent write can at worst cause a failed store or a missed read that the caller can simply retry. Wit ... h no locks and no inter-process communication in the access path, a read is essentially a hash lookup in shared memory. As a result, ...
https://man.mtool.work/php/8.3/book.yac.html
The EventListener class | PHP 8.3 8706
The EventListener class (PECL event >= 1.5.0) はじめに Represents a connection listener. クラス概要 final class EventListener { /* 定数 */ const int OPT_LEAVE_SOCKETS_BLOCKING = 1 ; const int OPT_CLOSE_ON_FREE = 2 ; const int OPT_CLOSE_ON_E ... so that once it is closed, another socket can be opened to listen on the same port. EventListener::OPT_THREADSAFE Allocate locks for the listener, so that it's safe to use it from multiple threads. 目次 EventListener::__construct — Creates new connect ...
https://man.mtool.work/php/8.3/class.eventlistener.html
The Swoole\Coroutine\Lock class | PHP 8.3 8706
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 ... lock is reentrant, allowing the currently holding coroutine to safely perform multiple lock operations. 警告 Do not create locks in callback functions like onReceive , as this will cause continuous memory growth and lead to memory leaks. 警告 Locking ... go (function() use ( $lock , $waitGroup ) { $waitGroup -> add (); $lock -> lock (); // Wait for the holding coroutine to unlock sleep ( 1 ); $lock -> unlock (); $waitGroup -> done (); }); echo 'Lock does not block the process' ; $waitGroup -> wait (); ... }); 目次 Swoole\Coroutine\Lock::__construct — Construct a new coroutine lock Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary Swoole\Coroutine\Lock::trylock — Attempt to acquire t ...
https://man.mtool.work/php/8.3/class.swoole-coroutine-lock.html
dBase | PHP 8.3 8134
dBase はじめに 注意 : この拡張モジュールは » PECL レポジトリに移動 されており、以下のバージョン以降 PHP にバンドルされなくなっています。 PHP 5.3.0. These functions allow you to access records stored in dBase-format (dbf) databases. 警告 We ... se file would have very likely ruined your database. This can happen even with dbase 7.0.0+ on systems which implement the locks at the process level with multithreaded SAPIs. dBase files are simple sequential files of fixed length records. Records ar ...
https://man.mtool.work/php/8.3/book.dbase.html
posix_setrlimit 定数 | PHP 8.3 6990
posix_setrlimit() 定数 注意 : システムによっては いくつかの定数が使用できない場合があることに注意してください。 注意 : 以下の一覧とともに、特定のオペレーションシステムの setrlimit() のマニュアルページを読みたくなるかもしれません。 なぜなら、 ... て小さいです。 POSIX_RLIMIT_FSIZE ( int ) プロセスが作成できるファイルサイズの最大値をバイト単位で指定します。 POSIX_RLIMIT_LOCKS ( int ) プロセスが作ることができるロック数の最大数。 これは極めて古い Linux kernel でのみサポートされています。 POSIX_RLIM ...
https://man.mtool.work/php/8.3/posix.constants.setrlimit.html
定義済み定数 | PHP 8.3 5273
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 AF_UNIX ( int ) Unixドメイン中のファイルシステムパス名を示す、 ソケットアドレ ... -only file system. SOCKET_EMLINK ( int ) Too many links. SOCKET_EPIPE ( int ) Broken pipe. SOCKET_ENOLCK ( int ) No record locks available. SOCKET_ENOSYS ( int ) Function not implemented. SOCKET_ENOMSG ( int ) No message of desired type. SOCKET_EIDRM ...
https://man.mtool.work/php/8.3/sockets.constants.html
PREV 1 NEXT