Why use select() instead of sleep()?

后端 未结 6 831
执笔经年
执笔经年 2020-12-31 04:28

I\'m working through a chapter about iPhone audio and have come across a section of code that I can\'t make sense of:

while (aqc.playPtr < aqc.sampleLen)          


        
6条回答
  •  灰色年华
    2020-12-31 05:29

    Using select() with NULL rfds, wfds and efds is an idiomatic way of portably sleeping with subsecond resolution.

提交回复
热议问题