summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-01-28 12:13:54 +0000
committerroot <root>2008-01-28 12:13:54 +0000
commit7388b2555f954bae982ea70c7f27ce0183072044 (patch)
tree49dc57bc2b70533bebafa58ee12199c1a0e53464
parent7cec2b287ee92dec3d8dba2a5590648199964805 (diff)
*** empty log message ***
-rw-r--r--Changes1
-rw-r--r--ev.pod22
2 files changed, 11 insertions, 12 deletions
diff --git a/Changes b/Changes
index d25724a..3ce2451 100644
--- a/Changes
+++ b/Changes
@@ -7,6 +7,7 @@ Revision history for libev, a high-performance and full-featured event loop
- speed up signal detection after a fork.
- only optionally return trace status changed in ev_child
watchers.
+ - experimental (and undocumented) loop wrappers for ev++.h.
2.01 Tue Dec 25 08:04:41 CET 2007
- separate Changes file.
diff --git a/ev.pod b/ev.pod
index 3e2060e..ff63696 100644
--- a/ev.pod
+++ b/ev.pod
@@ -1697,7 +1697,7 @@ callback, free it. Also, use no error checking, as usual.
{
free (w);
// now do something you wanted to do when the program has
- // no longer asnything immediate to do.
+ // no longer anything immediate to do.
}
struct ev_idle *idle_watcher = malloc (sizeof (struct ev_idle));
@@ -2284,19 +2284,17 @@ the constructor.
class myclass
{
- ev_io io; void io_cb (ev::io &w, int revents);
- ev_idle idle void idle_cb (ev::idle &w, int revents);
+ ev::io io; void io_cb (ev::io &w, int revents);
+ ev:idle idle void idle_cb (ev::idle &w, int revents);
- myclass ();
- }
-
- myclass::myclass (int fd)
- {
- io .set <myclass, &myclass::io_cb > (this);
- idle.set <myclass, &myclass::idle_cb> (this);
+ myclass (int fd)
+ {
+ io .set <myclass, &myclass::io_cb > (this);
+ idle.set <myclass, &myclass::idle_cb> (this);
- io.start (fd, ev::READ);
- }
+ io.start (fd, ev::READ);
+ }
+ };
=head1 MACRO MAGIC