Macro: SB-SYS:WITH-DEADLINE

package type

Arranges for a TIMEOUT condition to be signalled if an operation respecting deadlines occurs either after the deadline has passed, or would take longer than the time left to complete.

Currently only SLEEP, blocking IO operations, GET-MUTEX, and CONDITION-WAIT respect deadlines, but this includes their implicit uses inside SBCL itself.

Unless OVERRIDE is true, existing deadlines can only be restricted, not extended. Deadlines are per thread: children are unaffected by their parent’s deadlines.

Experimental.

Lambda list

((&key sb-impl::seconds sb-impl::override) &body sb-impl::body)