示例#1
0
 public http2pipe(sync.Mutex mu = default, sync.Cond c = default, http2pipeBuffer b = default, long unread = default, error err = default, error breakErr = default, channel <object> donec = default, Action readFn = default)
 {
     this.mu       = mu;
     this.c        = c;
     this.b        = b;
     this.unread   = unread;
     this.err      = err;
     this.breakErr = breakErr;
     this.donec    = donec;
     this.readFn   = readFn;
 }
示例#2
0
 public bufferedPipe(long softLimit = default, sync.Mutex mu = default, slice <byte> buf = default, bool closed = default, sync.Cond rCond = default, sync.Cond wCond = default, time.Time rDeadline = default, time.Time wDeadline = default)
 {
     this.softLimit = softLimit;
     this.mu        = mu;
     this.buf       = buf;
     this.closed    = closed;
     this.rCond     = rCond;
     this.wCond     = wCond;
     this.rDeadline = rDeadline;
     this.wDeadline = wDeadline;
 }
示例#3
0
 public Work(Action <object> f = default, long running = default, sync.Mutex mu = default, slice <object> todo = default, sync.Cond wait = default, long waiting = default)
 {
     this.f       = f;
     this.running = running;
     this.mu      = mu;
     this.todo    = todo;
     this.wait    = wait;
     this.waiting = waiting;
 }