Hi guys, i trying to create global variable that store an array of HWND winapi with Mutex but the this show the error about *mut HWND__ cannot be sent between threads safely. Someone had do this one please help me. Thank you very much
use parking_lot::Mutex;
use winapi::shared::windef::HWND;
use lazy_static;
lazy_static::lazy_static! {
pub static ref GLOBAL_HWND_TOOLTIPS: Mutex<[Option<HWND>; define::MAX_TOOLTIPS]> = Mutex::new([Some(std::ptr::null_mut()); define::MAX_TOOLTIPS]);
}