Skip to content

Instantly share code, notes, and snippets.

@kmaglione
Created May 13, 2014 19:28
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 kmaglione/7382e9ab51662e2a41bc to your computer and use it in GitHub Desktop.
Save kmaglione/7382e9ab51662e2a41bc to your computer and use it in GitHub Desktop.
pthread_mutex_lock(&m->messagesMutex);
m->messages.push(msg);
pthread_cond_signal(&m->messagesNotEmptyCV);
pthread_mutex_unlock(&m->messagesMutex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment