… | |
… | |
762 | EV_END_WATCHER (check, check) |
762 | EV_END_WATCHER (check, check) |
763 | #endif |
763 | #endif |
764 | |
764 | |
765 | #if EV_EMBED_ENABLE |
765 | #if EV_EMBED_ENABLE |
766 | EV_BEGIN_WATCHER (embed, embed) |
766 | EV_BEGIN_WATCHER (embed, embed) |
767 | void set (struct ev_loop *embedded_loop) throw () |
767 | void set_embed (struct ev_loop *embedded_loop) throw () |
768 | { |
768 | { |
769 | int active = is_active (); |
769 | int active = is_active (); |
770 | if (active) stop (); |
770 | if (active) stop (); |
771 | ev_embed_set (static_cast<ev_embed *>(this), embedded_loop); |
771 | ev_embed_set (static_cast<ev_embed *>(this), embedded_loop); |
772 | if (active) start (); |
772 | if (active) start (); |