This is necessary if the pending rcu calls are closing and removing temp files. This also provide a function void rcu_wait_finished(void); to fixes test-logging.c test failures on msys2/mingw. On windows if the file doesn't closed, you can not remove it.
Yonggang Luo (2): logging: Fixes memory leak in test-logging.c rcu: add uninit destructor for rcu include/qemu/rcu.h | 5 +++++ tests/test-logging.c | 4 +++- util/rcu.c | 37 ++++++++++++++++++++++++++++++++++++- 3 files changed, 44 insertions(+), 2 deletions(-) -- 2.28.0.windows.1