ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev++.h
(Generate patch)

Comparing libev/ev++.h (file contents):
Revision 1.36 by root, Tue Jan 22 18:09:23 2008 UTC vs.
Revision 1.37 by root, Fri Jan 25 15:45:08 2008 UTC

157 return false; 157 return false;
158#endif 158#endif
159 } 159 }
160 160
161#if EV_MULTIPLICITY 161#if EV_MULTIPLICITY
162 bool operator== (struct ev_loop *other) const throw () 162 bool operator == (struct ev_loop *other) const throw ()
163 { 163 {
164 return this->EV_AX == other; 164 return this->EV_AX == other;
165 } 165 }
166 166
167 bool operator!= (struct ev_loop *other) const throw () 167 bool operator != (struct ev_loop *other) const throw ()
168 { 168 {
169 return ! (*this == other); 169 return ! (*this == other);
170 } 170 }
171 171
172 bool operator== (const struct ev_loop *other) const throw () 172 bool operator == (const struct ev_loop *other) const throw ()
173 { 173 {
174 return this->EV_AX == other; 174 return this->EV_AX == other;
175 } 175 }
176 176
177 bool operator!= (const struct ev_loop *other) const throw () 177 bool operator != (const struct ev_loop *other) const throw ()
178 { 178 {
179 return (*this == other); 179 return (*this == other);
180 } 180 }
181 181
182 operator struct ev_loop * () const throw () 182 operator struct ev_loop * () const throw ()
695 start (); 695 start ();
696 } 696 }
697 EV_END_WATCHER (sig, signal) 697 EV_END_WATCHER (sig, signal)
698 698
699 EV_BEGIN_WATCHER (child, child) 699 EV_BEGIN_WATCHER (child, child)
700 void set (int pid) throw () 700 void set (int pid, int trace = 0) throw ()
701 { 701 {
702 int active = is_active (); 702 int active = is_active ();
703 if (active) stop (); 703 if (active) stop ();
704 ev_child_set (static_cast<ev_child *>(this), pid); 704 ev_child_set (static_cast<ev_child *>(this), pid, trace);
705 if (active) start (); 705 if (active) start ();
706 } 706 }
707 707
708 void start (int pid) throw () 708 void start (int pid, int trace = 0) throw ()
709 { 709 {
710 set (pid); 710 set (pid, trace);
711 start (); 711 start ();
712 } 712 }
713 EV_END_WATCHER (child, child) 713 EV_END_WATCHER (child, child)
714 714
715 #if EV_STAT_ENABLE 715 #if EV_STAT_ENABLE

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines