Removed an RSI comment (for now).
Made next_thread not be an "unsigned", made it be an int, made it not overflow.