ChorusOS 5.0 Application Developer's Guide

The LAPSAFE Feature

If the LAPSAFE feature has been configured in the system, a LAP frame descriptor is allocated to register the calling thread as a temporary resource of the invoked actor. Each LAP frame has an associated level (LAP frame level) which represents the number of LAP frames for the considered thread.

LAPSAFE enforces stronger checking during LAP invocation. This ensures that the microkernel will synchronize the svLapDelete() operation with concurrent lap invocations. The full context of the calling thread is saved prior to the LAP invocation. This ensures that the calling thread can return from its invocation even if a failure occurs during the execution of the LAP handler. This option is mandatory if a LAP is called from user mode.