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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:200:    didreadcb=0;    lock=0;    } else    throw(MAGICTERMINATE);    return true;    }       final int read_cb(mixed id,mixed b) {    PD("Read callback %O\n",(string)b);    Thread.MutexKey lock=fillreadmux->lock(); -  if(procmsg) -  procmsg=0,lock=0,Thread.Thread(id()); +  if(procmsg&&id) +  procmsg=0,lock=0,Thread.Thread(id);    else if(fillread)    didreadcb=1, fillread.signal();    lock=0;    return 0;    }       protected void create() {    i::create();    fillreadmux=Thread.Mutex();    fillread=Thread.Condition();