pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:462:
} final bufcon|conxsess start(void|int waitforreal) { Thread.MutexKey lock; #ifdef PG_DEBUGRACE if (nostash->current_locking_thread()) PD("Nostash locked by %s\n", describe_backtrace(nostash->current_locking_thread()->backtrace())); #endif while (lock = (waitforreal ? nostash->lock : nostash->trylock)(1)) {
-
int mode;
+
stashcount->wait_till_drained(); #ifdef PG_DEBUGRACE conxsess sess = conxsess(this); #endif started = lock;
-
lock = 0; //
Force
release
before
acquiring
next
-
if (sizeof(stash) && getstash(KEEP) > KEEP)
+
lock = 0; //
Release
often,
release
early
+
int mode;
+
if (sizeof(stash) &&
(mode =
getstash(KEEP)
)
> KEEP)
sendcmd(mode); // Force out stash to the server #ifdef PG_DEBUGRACE return sess; #else return this; #endif } return bufcon(this)->start(); }