« SyncEvent::wait
SyncReaderWriter::__construct »

The SyncReaderWriter class

(PECL sync >= 1.0.0)

はじめに

A cross-platform, native implementation of named and unnamed reader-writer objects.

A reader-writer object allows many readers or one writer to access a resource. This is an efficient solution for managing resources where access will primarily be read-only but exclusive write access is occasionally necessary.

クラス概要

class SyncReaderWriter {
/* メソッド */
public function __construct(string $name = ?, int $autounlock = 1)
public function readlock(int $wait = -1): bool
public function readunlock(): bool
public function writelock(int $wait = -1): bool
public function writeunlock(): bool
}

目次

関連キーワード:
SyncReaderWriter   lock   wait   construct   writer   access   read   write   reader   exclusive   readlock   readunlock   writelock   writeunlock   Waits   Releases   SyncEvent   Sync   sync   cross   platform   native   implementation   named   unnamed
関連する関数・ページ:
syncreaderwriter.writelock   syncreaderwriter.readlock   syncreaderwriter.readunlock   syncreaderwriter.writeunlock   syncreaderwriter.construct   book.sync