MCPcopy Create free account
hub / github.com/RustCV/RustCV / SendWindow

Class SendWindow

rustcv/src/highgui/mod.rs:12–12  ·  view source on GitHub ↗

--- 关键修正:线程安全包装器 --- minifb::Window 在 Linux 上包含 X11 裸指针,默认不是 Send 的。 我们需要包装一下,并承诺它是 Send 的,以便存入全局 Mutex。

Source from the content-addressed store, hash-verified

10// minifb::Window 在 Linux 上包含 X11 裸指针,默认不是 Send 的。
11// 我们需要包装一下,并承诺它是 Send 的,以便存入全局 Mutex。
12struct SendWindow(Window);
13
14// ⚠️ UNSAFE: 强制标记为 Send。
15// 前提:我们在主线程中使用 imshow,且 Mutex 保证了同一时间只有一个线程访问。

Callers 1

imshowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected