pub fn release()Expand description
An X11 capture stopped: the last one out stops and joins the monitor. A caller holding the GIL runs it detached — the thread may be blocked delivering a cursor to a sink that needs it — and the join is bounded: a thread that misses the wake (X server wedged mid-shutdown) is abandoned with a warning rather than hanging the caller; it exits on its own next event. A stop issued from inside the cursor sink runs on the monitor thread itself, where a join can only time out: it signals and detaches instead, and the loop observes the stop flag once the sink returns.