Next Previous Up Top Contents Index

13 The MP Package

yield

Function

Summary

Allows preemption to happen in low safety code.
Package

mp

Signature

yield

Arguments

None

Values

None

Description

Normally code compiled at safety 0 cannot be preempted because the necessary checks are ommited. This can be overcome by callingyield at regular intervals. Usually there is no need to call this if you use functions from thecommon-lisp package because these are not compiled at safety 0, but for example if you find that preemption is not working in a loop with no function calls,yield can be useful. Note thatprocess-allow-scheduling also allows preemption, but also checks the wait functions of other processes.
See also

process-allow-scheduling

LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker