PHP 클래스 Icicle\Concurrent\Sync\FileMutex

This mutex implementation is not always atomic and depends on the operating system's implementation of file creation operations. Use this implementation only if no other mutex types are available. This implementation avoids using flock() because flock() is known to have some atomicity issues on some systems. In addition, flock() does not work as expected when trying to lock a file multiple times in the same process on Linux. Instead, exclusive file creation is used to create a lock file, which is atomic on most systems.
또한 보기: http://php.net/fopen
상속: implements Icicle\Concurrent\Sync\Mutex
파일 보기 프로젝트 열기: icicleio/concurrent

공개 메소드들

메소드 설명
__construct ( ) Creates a new mutex.
acquire ( ) : Generator

보호된 메소드들

메소드 설명
release ( ) Releases the lock on the mutex.

메소드 상세

__construct() 공개 메소드

Creates a new mutex.
public __construct ( )

acquire() 공개 메소드

public acquire ( ) : Generator
리턴 Generator

release() 보호된 메소드

Releases the lock on the mutex.
protected release ( )