What kind of loop is for (;;)?

后端 未结 12 955
暖寄归人
暖寄归人 2021-01-04 04:42

Found in torvalds/linux-2.6.git -> kernel/mutex.c line 171

I have tried to find it on Google and such to no avail.

What does for (;;) instruct?<

12条回答
  •  被撕碎了的回忆
    2021-01-04 05:16

    It's an infinite loop that you'll have to break somehow from within using a break, return or goto statement. or either some interrupt happens otherwise this loop will run infinitely and executes ;(null statement) every time

提交回复
热议问题