Jamm\Memory\Shm\MultiAccess::__construct PHP Метод

__construct() публичный Метод

public __construct ( $id = '' )
    public function __construct($id = '')
    {
        if (!empty($id)) {
            if (is_string($id)) {
                if (is_file($id) || is_dir($id)) {
                    $id = ftok($id, 'I');
                } else {
                    $id = intval($id);
                }
            }
            $this->read_q_key += $id * 10;
            $this->write_q_key += $id * 10;
            $this->writers_mutex_key += $id * 10;
        }
    }