コード例 #1
0
ファイル: BasicTest.php プロジェクト: boo1ean/shared
 public function testLock()
 {
     $key = uniqid();
     $storage = new Storage($key);
     $storage->destroy();
 }
コード例 #2
0
ファイル: SharedMemory.php プロジェクト: boo1ean/semaphore
 /**
  * Initialize storage with empty values
  */
 protected function initEmptyStorage()
 {
     $this->shm->set(self::K_SEM_COUNT, 0);
 }