public function unserialize($serialized)
    {
        // Get the semaphore key and attempt to re-connect to the semaphore in memory.
        list($this->key, $this->maxLocks) = unserialize($serialized);

        if (msg_queue_exists($this->key)) {
            $this->queue = msg_get_queue($this->key);
        }
    }
public function unserialize($serialized)
    {
        // Get the semaphore key and attempt to re-connect to the semaphore in memory.
        list($this->key, $this->maxLocks) = unserialize($serialized);

        if (msg_queue_exists($this->key)) {
            $this->queue = msg_get_queue($this->key);
        }
    }
public function unserialize ( $ serialized ) { // Get the semaphore key and attempt to re-connect to the semaphore in memory. list ( $ this -> key , $ this -> maxLocks ) = unserialize ( $ serialized ) ; if ( msg_queue_exists ( $ this -> key ) ) { $ this -> queue = msg_get_queue ( $ this -> key ) ; } }
Unserializes a serialized semaphore.

@param string $serialized The serialized semaphore.
Unserializes a serialized semaphore .