Skip to content

Instantly share code, notes, and snippets.

@atneik
Created March 10, 2012 10:18
Show Gist options
  • Save atneik/2011066 to your computer and use it in GitHub Desktop.
Save atneik/2011066 to your computer and use it in GitHub Desktop.
sembuf up/down
static struct sembuf downEmpty = { EMPTY_ID, -1, 0 };
static struct sembuf upEmpty = { EMPTY_ID, 1, 0 };
static struct sembuf upFull = { FULL_ID, 1, 0 };
static struct sembuf downFull = { FULL_ID, -1, 0 };
static struct sembuf downMutex = { MUTEX_ID, -1, 0 };
static struct sembuf upMutex = { MUTEX_ID, 1, 0 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment