… | |
… | |
986 | |
986 | |
987 | =item ev_userdata (loop) |
987 | =item ev_userdata (loop) |
988 | |
988 | |
989 | Set and retrieve a single C<void *> associated with a loop. When |
989 | Set and retrieve a single C<void *> associated with a loop. When |
990 | C<ev_set_userdata> has never been called, then C<ev_userdata> returns |
990 | C<ev_set_userdata> has never been called, then C<ev_userdata> returns |
991 | C<0.> |
991 | C<0>. |
992 | |
992 | |
993 | These two functions can be used to associate arbitrary data with a loop, |
993 | These two functions can be used to associate arbitrary data with a loop, |
994 | and are intended solely for the C<invoke_pending_cb>, C<release> and |
994 | and are intended solely for the C<invoke_pending_cb>, C<release> and |
995 | C<acquire> callbacks described above, but of course can be (ab-)used for |
995 | C<acquire> callbacks described above, but of course can be (ab-)used for |
996 | any other purpose as well. |
996 | any other purpose as well. |