ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/cfperl.h
(Generate patch)

Comparing deliantra/server/include/cfperl.h (file contents):
Revision 1.37 by root, Fri Dec 15 19:59:19 2006 UTC vs.
Revision 1.38 by root, Sat Dec 16 03:08:26 2006 UTC

355 355
356private: 356private:
357 void cancel () { GEventAPI->cancel ((pe_watcher *)pe); } // private 357 void cancel () { GEventAPI->cancel ((pe_watcher *)pe); } // private
358}; 358};
359 359
360struct iw : watcher<pe_idle>, callback<void (iw &)>
361{
362 template<class O, class M>
363 iw (O object, M method)
364 : callback<void (iw &)> (object, method)
365 {
366 alloc ();
367 }
368
369private:
370 void alloc ();
371};
372
360struct iow : watcher<pe_io>, callback<void (iow &, int)> 373struct iow : watcher<pe_io>, callback<void (iow &, int)>
361{ 374{
362 template<class O, class M> 375 template<class O, class M>
363 iow (O object, M method) 376 iow (O object, M method)
364 : callback<void (iow &, int)> (object, method) 377 : callback<void (iow &, int)> (object, method)
365 { 378 {
366 alloc (); 379 alloc ();
367 } 380 }
368 381
369 iow &fd (int fd); 382 void fd (int fd);
370 int poll (); 383 int poll ();
371 iow &poll (int events); 384 void poll (int events);
372 385
373private: 386private:
374 void alloc (); 387 void alloc ();
375}; 388};
376 389

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines