Skip to content

Commit

Permalink
LS: Make crate::server::schedule::thread accessible in codebase (#6507
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mkaput authored Oct 23, 2024
1 parent 637351f commit 040513c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion crates/cairo-lang-language-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ use crate::project::scarb::update_crate_roots;
use crate::project::unmanaged_core_crate::try_to_init_unmanaged_core;
use crate::server::client::{Client, Notifier, Requester, Responder};
use crate::server::connection::{Connection, ConnectionInitializer};
use crate::server::schedule::{JoinHandle, Scheduler, Task, event_loop_thread};
use crate::server::schedule::thread::JoinHandle;
use crate::server::schedule::{Scheduler, Task, event_loop_thread};
use crate::state::State;
use crate::toolchain::scarb::ScarbToolchain;

Expand Down
11 changes: 5 additions & 6 deletions crates/cairo-lang-language-server/src/server/schedule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@
// +---------------------------------------------------+

use anyhow::Result;
use task::BackgroundTaskBuilder;
use thread::ThreadPriority;

use self::task::BackgroundTaskBuilder;
use self::thread::{JoinHandle, ThreadPriority};
use crate::server::client::{Client, Notifier, Requester, Responder};
use crate::server::connection::ClientSender;
use crate::state::State;

mod task;
mod thread;
pub mod thread;

pub(super) use task::BackgroundSchedule;
pub use task::{SyncTask, Task};
pub use thread::JoinHandle;
pub(super) use self::task::BackgroundSchedule;
pub use self::task::{SyncTask, Task};

/// The event loop thread is actually a secondary thread that we spawn from the
/// _actual_ main thread. This secondary thread has a larger stack size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mod pool;
mod priority;

pub(super) use pool::Pool;
pub(super) use priority::ThreadPriority;
pub use priority::ThreadPriority;

pub struct Builder {
priority: ThreadPriority,
Expand Down

0 comments on commit 040513c

Please sign in to comment.