Crate preemptive_threads

Source

Re-exports§

pub use atomic_scheduler::AtomicScheduler;
pub use atomic_scheduler::ATOMIC_SCHEDULER;
pub use error::ThreadError;
pub use error::ThreadResult;
pub use platform_timer::init_preemption_timer;
pub use platform_timer::stop_preemption_timer;
pub use platform_timer::preemption_checkpoint;
pub use safe_api::exit_thread as safe_exit;
pub use safe_api::yield_now;
pub use safe_api::Mutex;
pub use safe_api::MutexGuard;
pub use safe_api::ThreadBuilder;
pub use safe_api::ThreadHandle;
pub use safe_api::ThreadPool;
pub use scheduler::Scheduler;
pub use scheduler::SCHEDULER;
pub use stack_guard::ProtectedStack;
pub use stack_guard::StackGuard;
pub use stack_guard::StackStats;
pub use stack_guard::StackStatus;
pub use sync::exit_thread;
pub use sync::yield_thread;
pub use thread::Thread;
pub use thread::ThreadId;
pub use thread::ThreadState;

Modules§

atomic_scheduler
context
context_full
error
platform_timer
Platform-specific timer implementations for preemptive scheduling
preemption
safe_api
scheduler
signal_safe
stack_guard
sync
thread

Macros§

preemption_point
Cooperative preemption points - insert these in long-running code
protected_stack
Stack allocation with automatic guard setup