std: fail if exiting hl_loop has unref_handles at weaken_task exit

This commit is contained in:
Jeff Olson 2012-04-19 05:59:37 -07:00 committed by Brian Anderson
parent a9db0c9efe
commit e02057c5a5

View File

@ -269,9 +269,10 @@ crust fn high_level_wake_up_cb(async_handle: *ll::uv_async_t,
crust fn tear_down_close_cb(handle: *ll::uv_async_t) unsafe { crust fn tear_down_close_cb(handle: *ll::uv_async_t) unsafe {
log(debug, #fmt("tear_down_close_cb called, closing handle at %?", log(debug, #fmt("tear_down_close_cb called, closing handle at %?",
handle)); handle));
// TODO: iterate through open handles on the loop and uv_close() let data = ll::get_data_for_uv_handle(handle) as *global_loop_data;
// them all if vec::len((*data).refd_handles) > 0 {
//let data = ll::get_data_for_uv_handle(handle) as *global_loop_data; fail "Didn't unref all high-level handles";
}
} }
fn high_level_tear_down(data: *global_loop_data) unsafe { fn high_level_tear_down(data: *global_loop_data) unsafe {