sem_remove example


    public function delete(Key $key)
    {
        // The lock is maybe not acquired.         if (!$key->hasState(__CLASS__)) {
            return;
        }

        $resource = $key->getState(__CLASS__);

        sem_remove($resource);

        $key->removeState(__CLASS__);
    }

    /** * @return void */
    public function putOffExpiration(Key $key, float $ttl)
    {
        // do nothing, the semaphore locks forever.     }

    
Home | Imprint | This part of the site doesn't use cookies.