mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-17 10:18:31 +00:00
Merge #9532
9532: Shorten thread names r=lnicola a=weirdsmiley Threads on Linux have an upper limit of 16 characters, hence dropping `Thread` from their names. Co-authored-by: Manas <manas18244@iiitd.ac.in>
This commit is contained in:
commit
ff8621b4b8
4 changed files with 6 additions and 6 deletions
|
@ -68,7 +68,7 @@ impl FlycheckHandle {
|
||||||
let actor = FlycheckActor::new(id, sender, config, workspace_root);
|
let actor = FlycheckActor::new(id, sender, config, workspace_root);
|
||||||
let (sender, receiver) = unbounded::<Restart>();
|
let (sender, receiver) = unbounded::<Restart>();
|
||||||
let thread = jod_thread::Builder::new()
|
let thread = jod_thread::Builder::new()
|
||||||
.name("FlycheckThread".to_owned())
|
.name("Flycheck".to_owned())
|
||||||
.spawn(move || actor.run(receiver))
|
.spawn(move || actor.run(receiver))
|
||||||
.expect("failed to spawn thread");
|
.expect("failed to spawn thread");
|
||||||
FlycheckHandle { sender, thread }
|
FlycheckHandle { sender, thread }
|
||||||
|
@ -270,7 +270,7 @@ impl CargoHandle {
|
||||||
let (sender, receiver) = unbounded();
|
let (sender, receiver) = unbounded();
|
||||||
let actor = CargoActor::new(child_stdout, sender);
|
let actor = CargoActor::new(child_stdout, sender);
|
||||||
let thread = jod_thread::Builder::new()
|
let thread = jod_thread::Builder::new()
|
||||||
.name("CargoHandleThread".to_owned())
|
.name("CargoHandle".to_owned())
|
||||||
.spawn(move || actor.run())
|
.spawn(move || actor.run())
|
||||||
.expect("failed to spawn thread");
|
.expect("failed to spawn thread");
|
||||||
CargoHandle { child, thread, receiver }
|
CargoHandle { child, thread, receiver }
|
||||||
|
|
|
@ -38,7 +38,7 @@ impl ProcMacroProcessSrv {
|
||||||
|
|
||||||
let (task_tx, task_rx) = bounded(0);
|
let (task_tx, task_rx) = bounded(0);
|
||||||
let handle = jod_thread::Builder::new()
|
let handle = jod_thread::Builder::new()
|
||||||
.name("ProcMacroClientThread".to_owned())
|
.name("ProcMacroClient".to_owned())
|
||||||
.spawn(move || {
|
.spawn(move || {
|
||||||
client_loop(task_rx, process);
|
client_loop(task_rx, process);
|
||||||
})
|
})
|
||||||
|
|
|
@ -182,7 +182,7 @@ impl ExecutionStrategy for CrossThread1 {
|
||||||
let (res_tx, res_rx) = channel();
|
let (res_tx, res_rx) = channel();
|
||||||
|
|
||||||
let join_handle = thread::Builder::new()
|
let join_handle = thread::Builder::new()
|
||||||
.name("DispatchThread".to_owned())
|
.name("Dispatch".to_owned())
|
||||||
.spawn(move || {
|
.spawn(move || {
|
||||||
let mut dispatch = |b| {
|
let mut dispatch = |b| {
|
||||||
req_tx.send(b).unwrap();
|
req_tx.send(b).unwrap();
|
||||||
|
@ -231,7 +231,7 @@ impl ExecutionStrategy for CrossThread2 {
|
||||||
let server_thread = thread::current();
|
let server_thread = thread::current();
|
||||||
let state2 = state.clone();
|
let state2 = state.clone();
|
||||||
let join_handle = thread::Builder::new()
|
let join_handle = thread::Builder::new()
|
||||||
.name("ServerThread".to_owned())
|
.name("ProcMacroServer".to_owned())
|
||||||
.spawn(move || {
|
.spawn(move || {
|
||||||
let mut dispatch = |b| {
|
let mut dispatch = |b| {
|
||||||
*state2.lock().unwrap() = State::Req(b);
|
*state2.lock().unwrap() = State::Req(b);
|
||||||
|
|
|
@ -32,7 +32,7 @@ impl loader::Handle for NotifyHandle {
|
||||||
let actor = NotifyActor::new(sender);
|
let actor = NotifyActor::new(sender);
|
||||||
let (sender, receiver) = unbounded::<Message>();
|
let (sender, receiver) = unbounded::<Message>();
|
||||||
let thread = jod_thread::Builder::new()
|
let thread = jod_thread::Builder::new()
|
||||||
.name("LoaderThread".to_owned())
|
.name("VfsLoader".to_owned())
|
||||||
.spawn(move || actor.run(receiver))
|
.spawn(move || actor.run(receiver))
|
||||||
.expect("failed to spawn thread");
|
.expect("failed to spawn thread");
|
||||||
NotifyHandle { sender, thread }
|
NotifyHandle { sender, thread }
|
||||||
|
|
Loading…
Reference in a new issue