pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2018-05-17
2018-05-17 15:49:53 by Stephen R. van den Berg <srb@cuci.nl>
793581e44cda669b6a02a87175642c3a6b1b8ddd (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Guard against async destructs.
1502:
return local_backend->call_out(gottimeout, timeout); }
-
inline void scuttletimeout(array cid) {
+
inline
private
void scuttletimeout(array cid) {
if (local_backend) local_backend->remove_call_out(cid); }
1525:
PD("%O Block for datarow\n", _portalname); array cid = setuptimeout(); PT(datarow = datarows->read());
+
if (!this) // If object already destructed, return fast
+
return 0;
scuttletimeout(cid); if (arrayp(datarow)) return datarow;
1552:
if (!sizeof(datarow)) { array cid = setuptimeout(); PT(datarow = datarows->read_array());
+
if (!this) // If object already destructed, return fast
+
return 0;
scuttletimeout(cid); } replenishrows();
1595:
for (;;) { array cid = setuptimeout(); PT(datarow = datarows->read());
+
if (!this) // If object already destructed, return fast
+
return 0;
scuttletimeout(cid); if (!arrayp(datarow)) break;
1624:
for (;;) { array cid = setuptimeout(); PT(datarow = datarows->read_array());
+
if (!this) // If object already destructed, return fast
+
return 0;
scuttletimeout(cid); if (!datarow || !arrayp(datarow[-1])) break;