Skip to content

Commit

Permalink
Merge pull request #65 from dsprenkels/master
Browse files Browse the repository at this point in the history
mark `RustBox` `Send`, but still not `Sync`
  • Loading branch information
gchp authored Nov 13, 2017
2 parents 78bc1c7 + d456724 commit 1d42771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rustbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ extern crate termbox_sys as termbox;

pub use self::style::{Style, RB_BOLD, RB_UNDERLINE, RB_REVERSE, RB_NORMAL};

use std::cell::UnsafeCell;
use std::error::Error;
use std::fmt;
use std::io;
Expand Down Expand Up @@ -272,7 +273,7 @@ pub struct RustBox {
// top-down order. Otherwise it will not properly protect the above fields.
_running: running::RunningGuard,
// Termbox is not thread safe. See #39.
_phantom: PhantomData<*mut ()>,
_phantom: PhantomData<UnsafeCell<()>>,

// Store this so we know which colours to use
output_mode: OutputMode,
Expand Down

0 comments on commit 1d42771

Please sign in to comment.