teensyp.concurrent

Utility functions and macros for concurrent programming.

with-lock

macro

(with-lock lock & body)

Lock the supplied lock before running the body, and finally unlock the lock once the body is complete or has thrown an exception.