Anybody know how Windows VirtualProtect timing works across threads? If I call VirtualProtect(...PAGE_READONLY) then set a flag via LOCK OR, is it possible that other threads will see the flag set but still be able to write to the page?
-
-
I don't think I follow. What is the behavior you're looking for?
-
I want to call VirtualProtect to make a page read-only, then check the contents of the page, with confidence that no further changes will show up later due to delays in other threads recognized the page as read-only.
- 3 more replies
New conversation -
-
Show additional replies, including those that may contain offensive content
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.