Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of <see cref="UvLoop"/> on current thread.
 /// All calls to this loop and it's handles must be invoked from the same thread.
 /// </summary>
 public UvLoop()
     : base(_CalculateSize(), Thread.CurrentThread.ManagedThreadId)
 {
     Libuv.EnsureSuccess(Libuv.uv_loop_init(this));
     this.NeedsToBeClosed = true;
 }