2922 Commits

Author SHA1 Message Date
Gleb Pomykalov
51f4f0594c
io: speed-up waking by using uninitialized array (#4055) 2021-08-25 16:18:19 +02:00
Alice Ryhl
897fed1609
ci: fail if valgrind complains (#4066) 2021-08-24 23:35:37 +02:00
Alice Ryhl
fd52f9f66b Merge branch 'merge-1.10.1' into master 2021-08-24 20:50:43 +02:00
Alice Ryhl
dd060b16f5 chore: prepare Tokio v1.10.1 tokio-1.10.1 2021-08-24 17:48:25 +02:00
Alice Ryhl
4152918a39 runtime: fix leak in UnownedTask 2021-08-24 17:48:25 +02:00
Alice Ryhl
7e474640dd
chore: fix chores (#4060) 2021-08-24 14:57:23 +02:00
Nylonicious
84f6845bf2
stream: impl FromIterator for StreamMap (#4052) 2021-08-24 13:21:02 +02:00
Alice Ryhl
2bc9a42d2b
process: add from_std to ChildStd* (#4045) 2021-08-19 09:46:05 +02:00
Christoph Herzog
8aa2bfe23e
watch: make watch::Sender::subscribe public (#3800)
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
2021-08-19 09:43:59 +02:00
Alice Ryhl
5ac32934b4
time: don't panic when Instant is not monotonic (#4044) 2021-08-19 09:41:35 +02:00
Eliza Weisman
d0305d57e5
tracing: change span naming to new console convention (#4042)
Currently, the per-task spans generated by Tokio's `tracing` feature
have the span name "task" and the target "tokio::task". This is because
the console subscriber identified tasks by looking specifically for the
"tokio::task" target.

In tokio-rs/console#41, it was proposed that the console change to a
more generic system for identifying the spans that correspond to tasks,
to allow recording tasks belonging to multiple runtime crates (e.g. an
application that uses Tokio for async tasks and Rayon for CPU-bound
tasks). PR tokio-rs/console#68 changed the console to track any spans
"runtime.spawn", regardless of target (so that the target can be used to
identify the runtime a task came from), with "tokio::task/task" tracked
for backwards-compatibility with the current release version of tokio.

This branch changes Tokio's span naming to the new convention. I also
rearranged a couple fields so that the task's kind field always comes
before the name and spawn location, since it's likely to be the
shortest, and renamed the `function` field on blocking tasks to `fn`,
for brevity's sake.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2021-08-16 12:43:34 -07:00
Alice Ryhl
5c19b5a162
time: make Sleep examples easier to find (#4040) 2021-08-15 19:24:04 +02:00
Alice Ryhl
f478647a8e
ci: add readme check to CI (#4039) 2021-08-13 15:05:09 +02:00
Alice Ryhl
c0974bad94
chore: prepare Tokio v1.10.0 (#4038) tokio-1.10.0 2021-08-12 21:55:48 +02:00
Alice Ryhl
b67534a20b
tests: fix flaky test (#4024) 2021-08-12 20:15:06 +02:00
Alice Ryhl
c4e56232ff
sync: use spin_loop_hint instead of yield_now in mpsc (#4037) 2021-08-12 16:03:10 +02:00
Blas Rodriguez Irizar
84c4a6d89f
task: quickly send task to heap on debug mode (#4009) 2021-08-12 15:37:26 +02:00
Alice Ryhl
b501f25202
runtime: give Notified a safe API (#4005) 2021-08-12 10:06:05 +02:00
Alan Somers
032c55e77f
tokio: the test-util feature depends on rt, sync, and time (#4036)
Fixes #4035
2021-08-12 10:04:09 +02:00
Kateřina Churanová
1e95d6994a
chore: explicitly relaxed clippy lint for runtime entry macro (#4030) 2021-08-11 18:16:00 +09:00
LinkTed
362df5a317
io: add test for write_f(32|64)[_le] (#4026) 2021-08-04 18:58:38 +02:00
LinkTed
106bb94896
io: add (read|write)_f(32|64)[_le] methods (#4022) 2021-08-04 13:45:26 +02:00
LinkTed
8198ef3881
chore: fix clippy warnings (#4017) 2021-08-03 10:50:40 +02:00
Alice Ryhl
e66217575b
sync: document when watch::send fails (#4021) 2021-08-03 09:38:58 +02:00
Alice Ryhl
175d84e2b1
chore: fix doc failure in CI on master (#4020) 2021-08-03 09:07:38 +02:00
Alice Ryhl
69a6585429
signal: make windows docs for signal module show up on unix builds (#3770) 2021-08-02 20:55:17 +02:00
Alan Somers
cf02b3f32d
fs: reorganize tokio::fs::file's mock tests (#3988) 2021-07-31 09:55:32 +02:00
Alice Ryhl
d01bda86a4
tests: simplify loom tests (#3995) 2021-07-30 13:03:38 +02:00
Alice Ryhl
e60d7a474b
chore: fix CI on master (#4008) 2021-07-30 12:28:46 +02:00
Alice Ryhl
0d9430b99c
tests: reduce sleep durations (#3994) 2021-07-30 11:27:04 +02:00
quininer
f51676891f
io: fix copy buffered write (#4001) 2021-07-30 11:20:16 +02:00
Alice Ryhl
3340ae6aa9
io: add fill_buf and consume (#3991) 2021-07-30 11:17:40 +02:00
Félix Saparelli
f957f7f9a7
process: add Child::raw_handle() on windows (#3998)
Fixes #3987
2021-07-28 15:42:03 +00:00
Alice Ryhl
8b447649bb
io: document cancellation safety of AsyncBufReadExt (#3997) 2021-07-27 17:59:38 +02:00
Erik Tews
4d8cc28b76
io: add missing Option to doc (#3999) 2021-07-27 16:06:47 +02:00
Alice Ryhl
f2a06bff1b
runtime: add owner id for tasks in OwnedTasks (#3979) 2021-07-27 10:41:35 +02:00
Alice Ryhl
0de05422ce Merge branch 'master' and 'merge-1.8.3' 2021-07-26 21:07:52 +02:00
Alice Ryhl
afb734d189 chore: prepare Tokio v1.8.3 (#3983) tokio-1.8.3 2021-07-26 17:35:40 +02:00
Alice Ryhl
2b731c0e01
task: elaborate on queue behavior of spawn_blocking (#3981) 2021-07-26 15:37:17 +02:00
Alice Ryhl
8f27c04a9e
codec: remove unnecessary doc(cfg(...)) (#3989) 2021-07-26 12:32:24 +02:00
LinkTed
c85a0e524e
process: add arg0 method to Command (#3984) 2021-07-26 11:43:55 +02:00
Alice Ryhl
1eb468be08 task: fix leak in LocalSet (#3978) 2021-07-22 15:26:31 +02:00
Alice Ryhl
378409d15d runtime: add large test and fix leak it found (#3967) 2021-07-22 15:26:31 +02:00
Alice Ryhl
51ff95c144 chore: use the loom mutex wrapper everywhere (#3958) 2021-07-22 15:26:23 +02:00
Alice Ryhl
df10b68d47
readme: add release schedule and bugfix policy (#3948) 2021-07-22 13:53:43 +02:00
Alice Ryhl
b280c6dcd7
chore: prepare Tokio v1.9.0 (#3961) tokio-1.9.0 2021-07-22 12:05:39 +02:00
Alice Ryhl
998dc5a2eb
task: fix leak in LocalSet (#3978) 2021-07-22 12:05:02 +02:00
Alice Ryhl
ced7992f65
runtime: add large test and fix leak it found (#3967) 2021-07-22 09:06:38 +02:00
Alice Ryhl
0cefa85bfa
runtime: make scheduler non-optional (#3980) 2021-07-21 20:05:21 +02:00
Alice Ryhl
2087f3e0eb
runtime: rework binding of new tasks (#3955) 2021-07-20 16:43:34 +02:00