printstate_has_new_req_arrived
while (!printstate_has_new_req_arrived(req)) {
if (printstate_has_new_req_arrived(req))