コード例 #1
0
ファイル: BasicTest.php プロジェクト: boo1ean/shared
 public function testLock()
 {
     $key = uniqid();
     $storage = new Storage($key);
     $storage->destroy();
 }
コード例 #2
0
ファイル: SharedMemory.php プロジェクト: boo1ean/semaphore
 /**
  * Destroy shared storage if there is 0 semaphores out there
  */
 public function __destruct()
 {
     if (0 == $this->count()) {
         $this->shm->destroy();
     }
 }