pthread_create and EAGAIN

前端 未结 5 901
独厮守ぢ
独厮守ぢ 2021-01-18 18:13

I got an EAGAIN when trying to spawn a thread using pthread_create. However, from what I\'ve checked, the threads seem to have been terminated properly.

What determi

5条回答
  •  难免孤独
    2021-01-18 18:33

    Another potential cause: I was getting this problem (EAGAIN on pthread_create) because I had forgotten to call pthread_attr_init on the pthread_attr_t I was trying to initialize my thread with.

提交回复
热议问题