Photo by K15 Photos on Unsplash 쓰레드를 생성하는 pthread_create()의 함수 시그니처는 아래와 같다. int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg); 그런데 빌드시에 파라미터로 들어가는 start_routine() 함수에서 warning이 뜬다. 분명 리턴값이 void 인데 왜 warning이 뜰까? warning: Control reaches end of non-void function [-Wreturn-type] 별거 아니다. 쓰레드 함수의 리턴값은 아래와 같이 해주어야 한다. pthread_exit(NULL); 참고 ..
development
2021. 8. 31. 17:22
반응형
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 잡학툰
- MCP
- Gin
- bun
- strange
- 티스토리챌린지
- 체호프
- intellij
- clean agile
- go
- 오블완
- ChatGPT
- solid
- agile
- 클린 애자일
- 영화
- 독서후기
- github
- Echo
- OpenAI
- websocket
- golang
- middleware
- postgres
- 인텔리제이
- 독서
- backend
- gocore
- notion
- API
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
글 보관함