… | |
… | |
197 | |
197 | |
198 | =item $old_priority = $w->priority ($new_priority) |
198 | =item $old_priority = $w->priority ($new_priority) |
199 | |
199 | |
200 | Queries the priority on the watcher and optionally changes it. Pending |
200 | Queries the priority on the watcher and optionally changes it. Pending |
201 | watchers with higher priority will be invoked first. The valid range of |
201 | watchers with higher priority will be invoked first. The valid range of |
202 | priorities lies between EV::MAXPRI (default 3) and EV::MINPRI (default |
202 | priorities lies between EV::MAXPRI (default 2) and EV::MINPRI (default |
203 | -3). If the priority is outside this range it will automatically be |
203 | -2). If the priority is outside this range it will automatically be |
204 | normalised to the nearest valid priority. |
204 | normalised to the nearest valid priority. |
205 | |
205 | |
206 | The default priority of any newly-created weatcher is 0. |
206 | The default priority of any newly-created weatcher is 0. |
207 | |
207 | |
208 | =item $w->trigger ($revents) |
208 | =item $w->trigger ($revents) |