patriksvensson / waithandle-rs

A library that makes signaling between threads more ergonomic.

Home Page:https://crates.io/crates/waithandle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why we need nested Arc ?

RamType0 opened this issue · comments

We have Arc<WaitHandle> both in WaitHandleSignaler and WaitHandleListener.
Then WaitHandle has Arc<(Mutex<bool>, Condvar)>.
Nested Arc seems to be meaningless, why is that?

neither Mutex or Condvar is clonable