… | |
… | |
18 | Before the process blocks (in EV::loop) to wait for events, this module |
18 | Before the process blocks (in EV::loop) to wait for events, this module |
19 | will schedule and run all ready (= runnable) threads of the same or |
19 | will schedule and run all ready (= runnable) threads of the same or |
20 | higher priority. After that, it will cede once to a threads of lower |
20 | higher priority. After that, it will cede once to a threads of lower |
21 | priority, then continue in the event loop. |
21 | priority, then continue in the event loop. |
22 | |
22 | |
23 | That means that threads with the same or higher pripority as the threads |
23 | That means that threads with the same or higher priority as the threads |
24 | running the main loop will inhibit event processing, while threads of |
24 | running the main loop will inhibit event processing, while threads of |
25 | lower priority will get the CPU, but cannot completeley inhibit event |
25 | lower priority will get the CPU, but cannot completeley inhibit event |
26 | processing. Note that for that to work you actually have to run the EV |
26 | processing. Note that for that to work you actually have to run the EV |
27 | event loop in some thread. |
27 | event loop in some thread. |
28 | |
28 | |