|
|
@@ -19,7 +19,7 @@ static bool testIdle()
|
|
|
|
|
|
cm::uv_idle_ptr idle;
|
|
|
idle.init(*loop, &idled);
|
|
|
- uv_idle_start(idle, cb);
|
|
|
+ idle.start(cb);
|
|
|
uv_run(loop, UV_RUN_DEFAULT);
|
|
|
|
|
|
if (!idled) {
|
|
|
@@ -27,6 +27,17 @@ static bool testIdle()
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ idled = false;
|
|
|
+
|
|
|
+ idle.start(cb);
|
|
|
+ idle.stop();
|
|
|
+ uv_run(loop, UV_RUN_DEFAULT);
|
|
|
+
|
|
|
+ if (idled) {
|
|
|
+ std::cerr << "uv_idle_ptr::stop did not stop callback" << std::endl;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|