… | |
… | |
51 | /* this loops as long as we have _other_ coros with the same or higher priority */ |
51 | /* this loops as long as we have _other_ coros with the same or higher priority */ |
52 | while (CORO_NREADY && CORO_CEDE) |
52 | while (CORO_NREADY && CORO_CEDE) |
53 | ; |
53 | ; |
54 | } |
54 | } |
55 | |
55 | |
56 | static double |
56 | static NV |
57 | prepare_hook (void *data) |
57 | prepare_hook (void *data) |
58 | { |
58 | { |
59 | /* this yields once to another coro with any priority */ |
59 | /* this yields once to another coro with any priority */ |
60 | if (CORO_NREADY) |
60 | if (CORO_NREADY) |
61 | { |
61 | { |