Created
March 10, 2012 10:18
-
-
Save atneik/2011066 to your computer and use it in GitHub Desktop.
sembuf up/down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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