eal/windows: add interrupt thread skeleton
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Fri, 25 Sep 2020 23:32:42 +0000 (02:32 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Oct 2020 20:48:38 +0000 (22:48 +0200)
commit5c016fc0205a67123481dbe8f9784635beac8a09
tree834fa1183f827347dee4f117648bfd9f6519db9d
parentc76ec01b4591edb4e24fb0aebd937be9c9c1dfa4
eal/windows: add interrupt thread skeleton

Windows interrupt support is based on IO completion ports (IOCP).
Interrupt thread would send the devices requests to notify about
interrupts and then wait for any request completion. Add skeleton code
of this model without any hardware support.

Another way to wake up the interrupt thread is APC (asynchronous procedure
call), scheduled by any other thread via eal_intr_thread_schedule().
This internal API is intended for alarm implementation.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
lib/librte_eal/include/rte_eal_interrupts.h
lib/librte_eal/rte_eal_exports.def
lib/librte_eal/windows/eal.c
lib/librte_eal/windows/eal_interrupts.c
lib/librte_eal/windows/eal_windows.h
lib/librte_eal/windows/include/pthread.h