mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
This patch shortens the spawned threads' names, as threads on Linux
have an upper limit of 16 characters for their names.
This commit is contained in:
parent
e44c56b616
commit
f5c9407a8f
4 changed files with 6 additions and 6 deletions
|
@ -182,7 +182,7 @@ impl ExecutionStrategy for CrossThread1 {
|
|||
let (res_tx, res_rx) = channel();
|
||||
|
||||
let join_handle = thread::Builder::new()
|
||||
.name("DispatchThread".to_owned())
|
||||
.name("Dispatch".to_owned())
|
||||
.spawn(move || {
|
||||
let mut dispatch = |b| {
|
||||
req_tx.send(b).unwrap();
|
||||
|
@ -231,7 +231,7 @@ impl ExecutionStrategy for CrossThread2 {
|
|||
let server_thread = thread::current();
|
||||
let state2 = state.clone();
|
||||
let join_handle = thread::Builder::new()
|
||||
.name("ServerThread".to_owned())
|
||||
.name("ProcMacroServer".to_owned())
|
||||
.spawn(move || {
|
||||
let mut dispatch = |b| {
|
||||
*state2.lock().unwrap() = State::Req(b);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue