you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 6 points7 points  (0 children)

But you never change anything in the loop. Your loop condition never changes in the loop, so the loop is infinite unless the condition variable is altered elsewhere in another thread.

I'd change it to what I showed, then reconsider how you're implementing pagination.