본문 바로가기 메뉴 바로가기

just_HS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

just_HS

검색하기 폼
  • 분류 전체보기 (450)
    • python (6)
    • golang (108)
    • embedded (25)
    • google cloud platform (3)
    • google colaboratory (4)
    • deep learning (3)
    • blockchain (9)
    • git (15)
    • etc (16)
    • life-health (24)
    • javascript30 (19)
    • development (70)
    • book-movie (101)
    • til (37)
    • generative-ai (8)
    • book: how minds change (2)
  • 방명록

start_routine (1)
C language: pthread_create에서 start_routine의 warning

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
  • Bug
  • OpenAI
  • agile
  • 클린 아키텍처
  • 클린 애자일
  • API
  • middleware
  • clean agile
  • websocket
  • 엉클 밥
  • postgres
  • 인텔리제이
  • strange
  • go
  • 독서후기
  • 독서
  • ChatGPT
  • Gin
  • 오블완
  • 영화
  • bun
  • gocore
  • notion
  • backend
  • 티스토리챌린지
  • golang
  • solid
  • 잡학툰
  • Echo
  • intellij
more
«   2025/05   »
일 월 화 수 목 금 토
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 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바