MATLAB Application Program Interface Reference | Help Desk |
mexLock
Lock a MEX-file so that it cannot be cleared from memory
#include "mex.h" void mexLock(void);By default, MEX-files are unlocked, meaning that a user can clear them at any time. Call
mexLock
to prohibit a MEX-file from being cleared.
To unlock a MEX-file, call mexUnlock
.
See mexLock.c
in the mex
subdirectory of the examples
directory.
mexIsLocked
, mexMakeArrayPersistent
, mexMakeMemoryPersistent
, mexUnlock