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:512:
portal._portalname, ++queueoutidx, synctransact, sizeof(this)); } final bufcon|conxsess start(void|int|array(Thread.MutexKey) 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 = (intp(waitforreal) && waitforreal > 0
-
? nostash->lock : nostash->trylock)(1)) {
+
while (lock =
nostash
+
&&
(
(
intp(waitforreal) && waitforreal > 0
+
? nostash->lock : nostash->trylock)(1))
)
{
int mode; if (sizeof(stash) && (mode = getstash(KEEP)) > KEEP) sendcmd(mode); // Force out stash to the server if (!stashcount->drained()) { lock = 0; // Unlock while we wait if (arrayp(waitforreal)) waitforreal[0] = 0; stashcount->wait_till_drained(); if (arrayp(waitforreal)) return 0;