Remove lazy_static dependencie
This commit is contained in:
parent
bfcaad3ad1
commit
861ee21b2d
2 changed files with 2 additions and 5 deletions
|
@ -17,10 +17,8 @@ pub struct Context {
|
|||
raw: *mut sys::ImPlotContext,
|
||||
}
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
// This mutex is used to guard any accesses to the context
|
||||
static ref CTX_MUTEX: ReentrantMutex<()> = ReentrantMutex::new(());
|
||||
}
|
||||
// This mutex is used to guard any accesses to the context
|
||||
static CTX_MUTEX: ReentrantMutex<()> = parking_lot::const_reentrant_mutex(());
|
||||
|
||||
fn no_current_context() -> bool {
|
||||
let ctx = unsafe { sys::ImPlot_GetCurrentContext() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue