示例#1
0
 public virtual void unregister_fd(ReactorFileHandler handler)
 {
     lock (_fds)
     {
         _fds.Remove(handler);
     }
 }
示例#2
0
        // File descriptors
        public virtual ReactorFileHandler register_fd(CommandStream fd, Action <double> callback)
        {
            var handler = new ReactorFileHandler(fd, callback);

            lock (_fds)
            {
                _fds.Add(handler);
            }
            return(handler);
        }