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

Comparing libev/ev++.h (file contents):
Revision 1.25 by llucax, Fri Jan 18 18:13:40 2008 UTC vs.
Revision 1.27 by llucax, Fri Jan 18 18:14:23 2008 UTC

184 184
185 bool is_pending () const 185 bool is_pending () const
186 { 186 {
187 return ev_is_pending (static_cast<const ev_watcher *>(this)); 187 return ev_is_pending (static_cast<const ev_watcher *>(this));
188 } 188 }
189
190 void feed_event (int revents)
191 {
192 ev_feed_event (EV_A_ static_cast<const ev_watcher *>(this), revents);
193 }
194 };
195
196 inline void delay (tstamp interval)
197 {
198 ev_sleep (interval);
189 }; 199 }
200
201 inline int version_major ()
202 {
203 return ev_version_major ();
204 }
205
206 inline int version_minor ()
207 {
208 return ev_version_minor ();
209 }
210
211 inline unsigned int supported_backends ()
212 {
213 return ev_supported_backends ();
214 }
215
216 inline unsigned int recommended_backends ()
217 {
218 return ev_recommended_backends ();
219 }
220
221 inline unsigned int embeddable_backends ()
222 {
223 return ev_embeddable_backends ();
224 }
225
226 inline void set_allocator (void *(*cb)(void *ptr, long size))
227 {
228 ev_set_allocator (cb);
229 }
230
231 inline void set_syserr_cb (void (*cb)(const char *msg))
232 {
233 ev_set_syserr_cb (cb);
234 }
190 235
191 236
192 inline ev_tstamp now (EV_P) 237 inline ev_tstamp now (EV_P)
193 { 238 {
194 return ev_now (EV_A); 239 return ev_now (EV_A);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines