pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-11-18
2014-11-18 22:33:37 by Stephen R. van den Berg <srb@cuci.nl>
72d9bf3da94767537bc7c3002b28de0111279f4a (
10
lines) (+
5
/-
5
)
[
Show
|
Annotate
]
Branch:
8.1
pgsql: Remove cruft and decouple one shortmux.
380:
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);