Skip to content

Instantly share code, notes, and snippets.

@mattheweshleman
Last active June 20, 2020 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattheweshleman/9eea535c46b9092678d40043ce9634c0 to your computer and use it in GitHub Desktop.
Save mattheweshleman/9eea535c46b9092678d40043ce9634c0 to your computer and use it in GitHub Desktop.
race_condition_sleep
void Functionality()
{
ActivateAsyncBehavior();
msleep(20); //must wait for external behavior to complete
ReadDataAndActUponIt();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment