diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-06 11:38:53 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-10 01:37:11 -0800 |
| commit | b545751597a8cdeee4554338318f0ed6339634fd (patch) | |
| tree | e59d2c56af2c4547641b9b83b4b7939ee3a25f0d /src/rt/rust_uv.cpp | |
| parent | d08aadcc9aff233165a063df73c6436e0969f79c (diff) | |
| download | rust-b545751597a8cdeee4554338318f0ed6339634fd.tar.gz rust-b545751597a8cdeee4554338318f0ed6339634fd.zip | |
Rework the idle callback to have a safer interface
It turns out that the uv implementation would cause use-after-free if the idle callback was used after the call to `close`, and additionally nothing would ever really work that well if `start()` were called twice. To change this, the `start` and `close` methods were removed in favor of specifying the callback at creation, and allowing destruction to take care of closing the watcher.
Diffstat (limited to 'src/rt/rust_uv.cpp')
0 files changed, 0 insertions, 0 deletions
