public IDisposable addCallback(VoidCallback callback) { var node = new _CallbackNode { callback = callback }; lock (this._callbackList) { this._callbackList.AddLast(node); } this._event.Set(); return(new _CallbackDisposable(node)); }
public _CallbackDisposable(_CallbackNode node) { this._node = node; }