Jamm\Memory\Shm\MultiAccess::clean_queue PHP Method

clean_queue() protected method

protected clean_queue ( $type = self::writers )
    protected function clean_queue($type = self::writers)
    {
        $q = $this->select_q($type);
        $stat = msg_stat_queue($q);
        if ($stat['msg_qnum'] > 0) {
            for ($i = $stat['msg_qnum']; $i > 0; $i--) {
                msg_receive($q, $type, $t, 100, $msg, false, MSG_IPC_NOWAIT + MSG_NOERROR, $err);
            }
        }
    }