| MATLAB Application Program Interface Reference | Help Desk |
mexIsLocked
True if this MEX-file is locked
#include "mex.h" bool mexIsLocked(void);
True if the MEX-file is locked; False if the file is unlocked.
Call mexIsLocked to determine if the MEX-file is locked. By default, MEX-files are unlocked, meaning that users can clear a MEX-file at any time. Calling mexLock locks a MEX-file, which makes it impossible for a user to clear a MEX-file.
mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent, mexUnlock