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;
}
}