public EioContext(Loop parent) { eioHandlerCb = EioHandler; outstanding = new ConcurrentQueue<Action> (); pulse = new AsyncWatcher (parent, eioHandlerCb); pulse.Start (); }
public Boundary( IOLoop loop, int maxWorkPerLoop ) { asyncWatcher = new AsyncWatcher ((LibEvLoop)loop.EventLoop, ( l, w, et ) => ProcessWork()); asyncWatcher.Start (); workQueue = new ConcurrentQueue<Action> (); this.maxWorkPerLoop = maxWorkPerLoop; }
public HttpResponse(IHttpTransaction transaction, IOStream stream) { Transaction = transaction; IOStream = stream; StatusCode = 200; WriteHeaders = true; Headers = new HttpHeaders (); Stream = new HttpResponseStream (this, IOStream); Stream.Chunked = (transaction.Request.MajorVersion > 0 && transaction.Request.MinorVersion > 0); end_watcher = new AsyncWatcher (IOLoop.Instance.EventLoop, OnEnd); end_watcher.Start (); }
public HttpEntity() { end_watcher = new AsyncWatcher (IOLoop.Instance.EventLoop, OnEnd); end_watcher.Start (); }