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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:270:    return 0;    }       protected void create() {    i::create();    fillreadmux=Thread.Mutex();    fillread=Thread.Condition();    }   };    + class sfile { +  inherit Stdio.File; +  int query_fd() { +  return is_open() ? ::query_fd() : -1; +  } + }; +    class conxion {    inherit Stdio.Buffer:o;    final conxiin i;       private Thread.Queue qportals;    final Thread.Mutex shortmux;    private int closenext;    -  final Stdio.File socket; +  final sfile socket;    private function(void|mixed:void) connectfail;    private int towrite;    final multiset(function(void|mixed:void)) closecallbacks=(<>);       final Thread.Mutex nostash;    final Thread.MutexKey started;    final Thread.Queue stashqueue;    final Thread.Condition stashavail;    final Stdio.Buffer stash;    final int stashflushmode;
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:517:    !!started);    break;    }    return res;    }       protected void create(object pgsqlsess,Thread.Queue _qportals,int nossl) {    o::create();    qportals = _qportals;    synctransact = 1; -  socket=Stdio.File(); +  socket=sfile();    i=conxiin();    shortmux=Thread.Mutex();    nostash=Thread.Mutex();    closenext = 0;    stashavail=Thread.Condition();    stashqueue=Thread.Queue();    stash=Stdio.Buffer();    Thread.Thread(connectloop,pgsqlsess,nossl);    }   };