… | |
… | |
2697 | =item EV_ATOMIC_T |
2697 | =item EV_ATOMIC_T |
2698 | |
2698 | |
2699 | Libev requires an integer type (suitable for storing C<0> or C<1>) whose |
2699 | Libev requires an integer type (suitable for storing C<0> or C<1>) whose |
2700 | access is atomic with respect to other threads or signal contexts. No such |
2700 | access is atomic with respect to other threads or signal contexts. No such |
2701 | type is easily found in the C language, so you can provide your own type |
2701 | type is easily found in the C language, so you can provide your own type |
2702 | that you know is safe for your purposes. |
2702 | that you know is safe for your purposes. It is used both for signal handler "locking" |
|
|
2703 | as well as for signal and thread safety in C<ev_async> watchers. |
2703 | |
2704 | |
2704 | In the absense of this define, libev will use C<sig_atomic_t volatile> |
2705 | In the absense of this define, libev will use C<sig_atomic_t volatile> |
2705 | (from F<signal.h>), which is usually good enough on most platforms. |
2706 | (from F<signal.h>), which is usually good enough on most platforms. |
2706 | |
2707 | |
2707 | =item EV_H |
2708 | =item EV_H |