sem_release

(PHP 4, PHP 5, PHP 7) Release a semaphore bool sem_release ( resource $sem_identifier ) sem_release() releases the semaphore if it is currently acquired by the calling process, otherwise a warning is generated. After releasing the semaphore, sem_acquire() may be called to re-acquire it. Parameters: sem_identifier A Semaphore resource handle as returned by sem_get().

sem_get

(PHP 4, PHP 5, PHP 7) Get a semaphore id resource sem_get ( int $key [, int $max_acquire = 1 [, int $perm = 0666 [, int $auto_release = 1 ]]] ) sem_get() returns an id that can be used to access the System V semaphore with the given key. A second call to sem_get() for the same key will return a different semaphore identifier, but both identifiers access the same underlying semaphore. Parameters:

sem_acquire

(PHP 4, PHP 5, PHP 7) Acquire a semaphore bool sem_acquire ( resource $sem_identifier [, bool $nowait = false ] ) sem_acquire() by default blocks (if necessary) until the semaphore can be acquired. A process attempting to acquire a semaphore which it has already acquired will block forever if acquiring the semaphore would cause its maximum number of semaphore to be exceeded. After processing a request, any semaphores acqu

msg_stat_queue

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Returns information from the message queue data structure array msg_stat_queue ( resource $queue ) msg_stat_queue() returns the message queue meta data for the message queue specified by the queue. This is useful, for example, to determine which process sent the message that was just received. Parameters: queue Message queue resource hand

msg_set_queue

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Set information in the message queue data structure bool msg_set_queue ( resource $queue, array $data ) msg_set_queue() allows you to change the values of the msg_perm.uid, msg_perm.gid, msg_perm.mode and msg_qbytes fields of the underlying message queue data structure. Changing the data structure will require that PHP be running as the same user that created the queue, owns the queue (as

msg_send

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Send a message to a message queue bool msg_send ( resource $queue, int $msgtype, mixed $message [, bool $serialize = true [, bool $blocking = true [, int &$errorcode ]]] ) msg_send() sends a message of type msgtype (which MUST be greater than 0) to the message queue specified by queue. Parameters: queue msg_send() sends a message of

msg_remove_queue

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Destroy a message queue bool msg_remove_queue ( resource $queue ) msg_remove_queue() destroys the message queue specified by the queue. Only use this function when all processes have finished working with the message queue and you need to release the system resources held by it. Parameters: queue Message queue resource handle

msg_receive

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Receive a message from a message queue bool msg_receive ( resource $queue, int $desiredmsgtype, int &$msgtype, int $maxsize, mixed &$message [, bool $unserialize = true [, int $flags = 0 [, int &$errorcode ]]] ) msg_receive() will receive the first message from the specified queue of the type specified by desiredmsgtype. Parameters: queu

msg_queue_exists

(PHP 5 >= 5.3.0, PHP 7) Check whether a message queue exists bool msg_queue_exists ( int $key ) Checks whether the message queue key exists. Parameters: key Queue key. Returns: Returns TRUE on success or FALSE on failure. See also: msg_remove_queue() -

msg_get_queue

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Create or attach to a message queue resource msg_get_queue ( int $key [, int $perms = 0666 ] ) msg_get_queue() returns an id that can be used to access the System V message queue with the given key. The first call creates the message queue with the optional perms. A second call to msg_get_queue() for the same key will return a different message queue identifier, but both identifiers access