Skip to content

Instantly share code, notes, and snippets.

@vlj
Created May 26, 2015 16:03
Show Gist options
  • Select an option

  • Save vlj/6dbdde04a7bb2a163546 to your computer and use it in GitHub Desktop.

Select an option

Save vlj/6dbdde04a7bb2a163546 to your computer and use it in GitHub Desktop.
std::thread valueChangerThread([&]() {
WaitForSingleObject(handle, INFINITE);
CloseHandle(handle);
fence->Release();
vm::write32(m_label_addr + offset, value);
});
valueChangerThread.detach();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment