コード例 #1
0
 public static void Terminate()
 {
     lock (sync) {
         instance = null;
     }
 }
コード例 #2
0
        public DeviceEventController()
        {
            lock (sync) {
                if (instance == null)
                    instance = this;
                else
                    throw new Exception ("Attempt to create a second device event controller");
            }

            ObjectPath op = new ObjectPath ("/org/a11y/atspi/registry/deviceeventcontroller");
            proxy = Registry.Bus.GetObject<IDeviceEventController> ("org.a11y.atspi.Registry", op);
        }