diff options
author | root <root> | 2012-05-03 16:00:47 +0000 |
---|---|---|
committer | root <root> | 2012-05-03 16:00:47 +0000 |
commit | ae4bdb97fce8293731b329bb2fb204ed8a67b263 (patch) | |
tree | 21cf7d9b5b9ab985d98ba05f7761712efec764fa /ev.pod | |
parent | 1c5aa3ec0e061a4727e2bfa1d55380fa4efda369 (diff) |
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r-- | ev.pod | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2883,7 +2883,12 @@ callback, free it. Also, use no error checking, as usual. static void idle_cb (struct ev_loop *loop, ev_idle *w, int revents) { + // stop the watcher + ev_idle_stop (loop, w); + + // now we can free it free (w); + // now do something you wanted to do when the program has // no longer anything immediate to do. } |