Suspend pthreads without using condition

前端 未结 6 984
眼角桃花
眼角桃花 2020-12-16 05:09

I want to suspend pthreads but apparently, there is no such function as pthread_suspend. I read somewhere about suspending pthreads using mutexes and conditions and used it

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 05:34

    More to the point - what are you ultimately trying to do?? - I suspect the answer is not 'suspend a thread'. It may be that your program design has a problem.

提交回复
热议问题