pike.git / lib / modules / Sql.pmod / pgsql_util.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:373:    res=predef::sprintf("conxion fd: %d input queue: %d/%d "    "queued portals: %d output queue: %d/%d\n",    socket&&socket->query_fd(),    sizeof(i::this),i::_size_object(),    qportals->size(),sizeof(this),_size_object());    break;    }    return res;    }    -  protected void create(object _pgsqlsess,Thread.Queue _qportals,int nossl, -  Thread.Mutex _shortmux) { +  protected void create(object _pgsqlsess,Thread.Queue _qportals,int nossl) {    i::create(); o::create();    qportals = _qportals;    synctransact = 1; -  fillread=Thread.Condition(); -  shortmux=_shortmux; +     gottimeout=sendcmd; // Preset it with a NOP    timeout=128; // Just a reasonable amount    socket=Stdio.File(); -  nostash=Thread.Mutex(); +     stashqueue=Thread.Queue(); -  +  nostash=Thread.Mutex(); +  shortmux=Thread.Mutex();    stashavail=Thread.Condition(); -  +  fillread=Thread.Condition();    stash=Stdio.Buffer();    pgsqlsess=_pgsqlsess;    Thread.Thread(connectloop,nossl);    }   }      //! The result object returned by @[Sql.pgsql()->big_query()], except for   //! the noted differences it behaves the same as @[Sql.sql_result].   //!   //! @seealso