summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
authorroot <root>2007-11-11 01:07:35 +0000
committerroot <root>2007-11-11 01:07:35 +0000
commit8eaf72b24298b3c7c6e33812b1410b1ee3bb33c6 (patch)
tree8ccd4b8fd65a550857a37c8d625b272ed1d504b8 /ev++.h
parent6778edc72c8101697c478c40f104fe75c97e336e (diff)
fix bug
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ev++.h b/ev++.h
index aa46fb4..500d596 100644
--- a/ev++.h
+++ b/ev++.h
@@ -129,6 +129,11 @@ namespace ev {
return call (this, events); \
} \
\
+ ~cppstem () \
+ { \
+ stop (); \
+ } \
+ \
private: \
\
cppstem (const cppstem &o) \
@@ -183,6 +188,7 @@ namespace ev {
}
};
+ #if EV_PERIODICS
EV_DECLARE_WATCHER (periodic, periodic)
void set (ev_tstamp at, ev_tstamp interval = 0.)
{
@@ -203,6 +209,7 @@ namespace ev {
ev_periodic_again (EV_A_ static_cast<ev_periodic *>(this));
}
};
+ #endif
EV_DECLARE_WATCHER (idle, idle)
};