Searched refs:addressToDeviceCache (Results 1 – 1 of 1) sorted by relevance
28 addressToDeviceCache = new TwoWayDictionary<byte, IUSBDevice>(); in MPFS_USB()331 lock(addressToDeviceCache) in HandleSessionStart()333 addressToDeviceCache.Clear(); in HandleSessionStart()568 lock(addressToDeviceCache) in TryGetDeviceForEndpoint()571 if(!addressToDeviceCache.TryGetValue(address, out device)) in TryGetDeviceForEndpoint()577 … if(!addressToDeviceCache.TryExchange(device, address, out var oldAddress) || oldAddress != 0) in TryGetDeviceForEndpoint()602 lock(addressToDeviceCache) in TryInitializeConnectedDevice()604 if(addressToDeviceCache.Exists(0)) in TryInitializeConnectedDevice()610 … var peripheral = ChildCollection.Values.FirstOrDefault(x => !addressToDeviceCache.Exists(x)); in TryInitializeConnectedDevice()617 addressToDeviceCache.Add(0, peripheral); in TryInitializeConnectedDevice()[all …]