intel-device-plugins-for-ku.../cmd/fpga_plugin/devicecache
Dmitry Rozhkov 80b7b03576 fpga_plugin: refactor FPGA scans
This refactoring brings in device Cache running in its own
thread and scanning FPGA devices once every 5 secs. Then no timers
are used inside ListAndWatch() method of device managers and
no need to run scanning periodically in every device manager's
thread.

Cache generates update events and the plugin creates, updates or
deletes device managers on the fly upon receiving the events.

Introducing new modes of operations is a matter of adding a single
function converting and filtering the content of Cache.
2018-06-15 11:54:52 +03:00
..
devicecache_test.go fpga_plugin: refactor FPGA scans 2018-06-15 11:54:52 +03:00
devicecache.go fpga_plugin: refactor FPGA scans 2018-06-15 11:54:52 +03:00