eal/windows: fix interrupt thread handle leakage
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Sun, 2 May 2021 02:33:32 +0000 (05:33 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Jun 2021 07:04:28 +0000 (09:04 +0200)
commit3888f31950c8f7554d74925a7eca1557c7685fc3
tree07b6133a648c1f0778ca62397e60936a3753c692
parent35dff5d3b7fb0d8e559e0d82d329333f365e7273
eal/windows: fix interrupt thread handle leakage

Each time a work was scheduled in the interrupt thread,
usually an alarm, a handle was opened but not closed.

Opening a handle is a system call, which harms alarm precision.
Instead of opening and closing a handle each time, open it
when interrupt thread starts and close it when the thread finishes.

Fixes: 5c016fc0205a ("eal/windows: add interrupt thread skeleton")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Tested-by: Pallavi Kadam <pallavi.kadam@intel.com>
lib/eal/windows/eal_interrupts.c