mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
dsl: update docs
This commit is contained in:
parent
3e2b07158c
commit
0621793930
4 changed files with 39 additions and 94 deletions
|
|
@ -7,6 +7,12 @@ mod tui_event; pub use self::tui_event::*;
|
|||
mod tui_output; pub use self::tui_output::*;
|
||||
mod tui_perf; pub use self::tui_perf::*;
|
||||
|
||||
// The `Tui` struct (the *engine*) implements the
|
||||
// `tengri_input::Input` and `tengri_output::Output` traits.
|
||||
|
||||
// At launch, the `Tui` engine spawns two threads, the render thread and the input thread.
|
||||
// the application may further spawn other threads. All threads communicate using shared ownership:
|
||||
// `Arc<RwLock<T>>` and `Arc<AtomicT>`. Thus, at launch the engine and application instances are expected to be wrapped in `Arc<RwLock>`.
|
||||
pub struct Tui {
|
||||
pub exited: Arc<AtomicBool>,
|
||||
pub backend: CrosstermBackend<Stdout>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue