… | |
… | |
2112 | |
2112 | |
2113 | This will act as if the timer timed out, and restarts it again if it is |
2113 | This will act as if the timer timed out, and restarts it again if it is |
2114 | repeating. It basically works like calling C<ev_timer_stop>, updating the |
2114 | repeating. It basically works like calling C<ev_timer_stop>, updating the |
2115 | timeout to the C<repeat> value and calling C<ev_timer_start>. |
2115 | timeout to the C<repeat> value and calling C<ev_timer_start>. |
2116 | |
2116 | |
2117 | The exact semantics are as in the wollofing rules, all of which will be |
2117 | The exact semantics are as in the following rules, all of which will be |
2118 | applied to the watcher: |
2118 | applied to the watcher: |
2119 | |
2119 | |
2120 | =over 4 |
2120 | =over 4 |
2121 | |
2121 | |
2122 | =item If the timer is pending, the pending status is always cleared. |
2122 | =item If the timer is pending, the pending status is always cleared. |
… | |
… | |
4504 | If defined to be C<1>, libev will compile in support for the Linux inotify |
4504 | If defined to be C<1>, libev will compile in support for the Linux inotify |
4505 | interface to speed up C<ev_stat> watchers. Its actual availability will |
4505 | interface to speed up C<ev_stat> watchers. Its actual availability will |
4506 | be detected at runtime. If undefined, it will be enabled if the headers |
4506 | be detected at runtime. If undefined, it will be enabled if the headers |
4507 | indicate GNU/Linux + Glibc 2.4 or newer, otherwise disabled. |
4507 | indicate GNU/Linux + Glibc 2.4 or newer, otherwise disabled. |
4508 | |
4508 | |
|
|
4509 | =item EV_NO_SMP |
|
|
4510 | |
|
|
4511 | If defined to be C<1>, libev will assume that memory is always coherent |
|
|
4512 | between threads, that is, threads can be used, but threads never run on |
|
|
4513 | different cpus (or different cpu cores). This reduces dependencies |
|
|
4514 | and makes libev faster. |
|
|
4515 | |
|
|
4516 | =item EV_NO_THREADS |
|
|
4517 | |
|
|
4518 | If defined to be C<1>, libev will assume that it will never be called |
|
|
4519 | from different threads, which is a stronger assumption than C<EV_NO_SMP>, |
|
|
4520 | above. This reduces dependencies and makes libev faster. |
|
|
4521 | |
4509 | =item EV_ATOMIC_T |
4522 | =item EV_ATOMIC_T |
4510 | |
4523 | |
4511 | Libev requires an integer type (suitable for storing C<0> or C<1>) whose |
4524 | Libev requires an integer type (suitable for storing C<0> or C<1>) whose |
4512 | access is atomic and serialised with respect to other threads or signal |
4525 | access is atomic and serialised with respect to other threads or signal |
4513 | contexts. No such type is easily found in the C language, so you can |
4526 | contexts. No such type is easily found in the C language, so you can |