Why use select() instead of sleep()?

后端 未结 6 834
执笔经年
执笔经年 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:11

    There's no reason to do it. There's no reason ever to Sleep() either. One should always be expecting at least one event - program shutdown request.

提交回复
热议问题