_require_full.rs |
|
432 |
async_send_sync.rs |
|
43935 |
buffered.rs |
|
1409 |
coop_budget.rs |
|
3070 |
dump.rs |
|
4830 |
duplex_stream.rs |
|
1249 |
fs.rs |
|
491 |
fs_canonicalize_dir.rs |
|
620 |
fs_copy.rs |
|
1269 |
fs_dir.rs |
|
3254 |
fs_file.rs |
|
7260 |
fs_link.rs |
|
1546 |
fs_open_options.rs |
|
2606 |
fs_open_options_windows.rs |
|
1490 |
fs_remove_dir_all.rs |
|
935 |
fs_remove_file.rs |
|
660 |
fs_rename.rs |
|
796 |
fs_symlink_dir_windows.rs |
|
818 |
fs_symlink_file_windows.rs |
|
682 |
fs_try_exists.rs |
|
1644 |
io_async_fd.rs |
|
27115 |
io_async_read.rs |
|
174 |
io_buf_reader.rs |
|
12063 |
io_buf_writer.rs |
|
16198 |
io_chain.rs |
|
359 |
io_copy.rs |
|
2603 |
io_copy_bidirectional.rs |
|
4820 |
io_driver.rs |
|
2993 |
io_driver_drop.rs |
|
1399 |
io_fill_buf.rs |
|
859 |
io_join.rs |
|
1879 |
io_lines.rs |
|
533 |
io_mem_stream.rs |
|
2851 |
io_panic.rs |
|
5647 |
io_poll_aio.rs |
|
11511 |
io_read.rs |
|
1720 |
io_read_buf.rs |
|
2526 |
io_read_exact.rs |
|
352 |
io_read_line.rs |
|
3164 |
io_read_to_end.rs |
.. do nothing .. |
3597 |
io_read_to_string.rs |
|
1620 |
io_read_until.rs |
|
2101 |
io_repeat.rs |
|
439 |
io_sink.rs |
|
967 |
io_split.rs |
|
2549 |
io_take.rs |
|
1685 |
io_util_empty.rs |
|
1823 |
io_write.rs |
|
1342 |
io_write_all.rs |
|
1184 |
io_write_all_buf.rs |
|
3948 |
io_write_buf.rs |
|
1313 |
io_write_int.rs |
|
942 |
join_handle_panic.rs |
|
621 |
macros_join.rs |
|
4460 |
macros_pin.rs |
|
454 |
macros_rename_test.rs |
|
672 |
macros_select.rs |
|
16962 |
macros_test.rs |
|
2930 |
macros_try_join.rs |
|
4686 |
net_bind_resource.rs |
|
439 |
net_lookup_host.rs |
|
1165 |
net_named_pipe.rs |
|
13127 |
net_panic.rs |
|
5654 |
net_unix_pipe.rs |
|
16825 |
no_rt.rs |
|
1365 |
process_arg0.rs |
|
329 |
process_change_of_runtime.rs |
|
1055 |
process_issue_42.rs |
|
1289 |
process_issue_2174.rs |
|
1415 |
process_kill_after_wait.rs |
|
607 |
process_kill_on_drop.rs |
|
1074 |
process_raw_handle.rs |
|
610 |
process_smoke.rs |
|
876 |
rt_basic.rs |
|
11596 |
rt_common.rs |
|
41627 |
rt_handle.rs |
|
2811 |
rt_handle_block_on.rs |
|
14869 |
rt_local.rs |
|
1986 |
rt_metrics.rs |
|
6264 |
rt_panic.rs |
|
2290 |
rt_poll_callbacks.rs |
|
4383 |
rt_threaded.rs |
|
22721 |
rt_time_start_paused.rs |
|
357 |
rt_unstable_metrics.rs |
|
23367 |
signal_ctrl_c.rs |
|
403 |
signal_drop_recv.rs |
|
550 |
signal_drop_rt.rs |
|
1051 |
signal_drop_signal.rs |
|
816 |
signal_info.rs |
|
857 |
signal_multi_rt.rs |
|
1510 |
signal_no_rt.rs |
|
353 |
signal_notify_both.rs |
|
548 |
signal_panic.rs |
|
736 |
signal_realtime.rs |
|
3222 |
signal_twice.rs |
|
485 |
signal_usr1.rs |
|
480 |
support |
|
|
sync_barrier.rs |
|
2218 |
sync_broadcast.rs |
|
15878 |
sync_broadcast_weak.rs |
|
4657 |
sync_errors.rs |
|
635 |
sync_mpsc.rs |
|
40462 |
sync_mpsc_weak.rs |
|
18853 |
sync_mutex.rs |
#[test]
#[ignore]
fn lock() {
let mut lock = Mutex::new(false);
let mut lock2 = lock.clone();
std::thread::spawn(move || {
let l = lock2.lock();
pin_mut!(l);
let mut task = MockTask::new();
let mut g = assert_ready!(task.poll(&mut l));
std::thread::sleep(std::time::Duration::from_millis(500));
g = true;
drop(g);
});
std::thread::sleep(std::time::Duration::from_millis(50));
let mut task = MockTask::new();
let l = lock.lock();
pin_mut!(l);
assert_pending!(task.poll(&mut l));
std::thread::sleep(std::time::Duration::from_millis(500));
assert!(task.is_woken());
let result = assert_ready!(task.poll(&mut l));
assert!(*result);
}
|
4647 |
sync_mutex_owned.rs |
|
3749 |
sync_notify.rs |
|
7534 |
sync_once_cell.rs |
|
6376 |
sync_oneshot.rs |
|
10396 |
sync_panic.rs |
|
6221 |
sync_rwlock.rs |
|
9436 |
sync_semaphore.rs |
|
4737 |
sync_semaphore_owned.rs |
|
4847 |
sync_watch.rs |
|
9874 |
task_abort.rs |
|
10294 |
task_blocking.rs |
|
8524 |
task_builder.rs |
|
1768 |
task_hooks.rs |
|
2041 |
task_id.rs |
|
7924 |
task_join_set.rs |
|
8183 |
task_local.rs |
|
3551 |
task_local_set.rs |
|
20974 |
task_panic.rs |
|
2905 |
task_trace_self.rs |
|
3002 |
task_yield_now.rs |
|
654 |
tcp_accept.rs |
|
4691 |
tcp_connect.rs |
|
5970 |
tcp_echo.rs |
|
1279 |
tcp_into_split.rs |
|
3867 |
tcp_into_std.rs |
|
1543 |
tcp_peek.rs |
|
1063 |
tcp_shutdown.rs |
|
2682 |
tcp_socket.rs |
|
2119 |
tcp_split.rs |
|
1391 |
tcp_stream.rs |
|
11285 |
test_clock.rs |
|
1392 |
time_interval.rs |
|
16660 |
time_panic.rs |
|
2364 |
time_pause.rs |
|
8427 |
time_rt.rs |
|
2067 |
time_sleep.rs |
|
8352 |
time_timeout.rs |
|
3462 |
tracing_sync.rs |
Tests for sync instrumentation.
These tests ensure that the instrumentation for tokio
synchronization primitives is correct. |
9675 |
tracing_task.rs |
Tests for task instrumentation.
These tests ensure that the instrumentation for task spawning and task
lifecycles is correct. |
5373 |
tracing_time.rs |
Tests for time resource instrumentation.
These tests ensure that the instrumentation for tokio
synchronization primitives is correct. |
2511 |
udp.rs |
|
19897 |
uds_cred.rs |
|
690 |
uds_datagram.rs |
|
12503 |
uds_socket.rs |
|
3309 |
uds_split.rs |
|
1311 |
uds_stream.rs |
|
12302 |
unwindsafe.rs |
|
1118 |