Does the pthreads library have an API function to temporarily disable preemptions of the calling thread?

后端 未结 0 1000
情深已故
情深已故 2020-12-14 13:00

This is typically available in RTOSes, to combine with a spinlock for a short critical section.

Can you accomplish the rough equivalent by temporarily maximizing thre

相关标签:
回答
  • 消灭零回复
提交回复
热议问题