Skip to content

Instantly share code, notes, and snippets.

@deeev-sb
Last active May 12, 2020 16:54
Show Gist options
  • Save deeev-sb/e68b58453dd2bab584e06f0f6ea9d4a2 to your computer and use it in GitHub Desktop.
Save deeev-sb/e68b58453dd2bab584e06f0f6ea9d4a2 to your computer and use it in GitHub Desktop.
/* condition variable creation & destruction */
int pthread_cond_init (*condition, *attr); // mutex와 유사하게 condition variable에 대해서 초기화해 줄 수 있는 함수
int pthread_cond_destory (*condition); // condtion variable을 제거해 줄 수 있는 함수
/* conditon attribute creation & destruction */
int pthread_condattr_init (*attr); // condition variable의 속성을 초기화 해 줄 수 있는 함수
int pthread_condattr_destory (*attr); // condition variable의 속성을 제거해 줄 수 있는 함수
pthread_cond_t *condition
// condition variable을 위한 pthread 변수
// (type은 pthread_cond_t)
pthread_condattr_t *attr
// conditon variable 변수의 속성을 설정해 줄 수 있는 변수
// (type은 pthread_condattr_t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment