Пример #1
0
        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));
        }
Пример #2
0
 public _CallbackDisposable(_CallbackNode node)
 {
     this._node = node;
 }