I am trying to use WaitOnAddress to achieve read-write synchronization. According to MSDN,
https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-wai