What kind of loop is for (;;)?

后端 未结 12 1034
暖寄归人
暖寄归人 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:00

    It is an infinite loop which has no initial condition, no increment condition and no end condition. So it will iterate forever equivalent to while(1).

提交回复
热议问题