lock

inline fun <R> lock(block: (Slide.Locked) -> R): R

lock this slide to prevent races with the renderer

don't talk to the window while the slide is locked, or you might deadlock!