| MATLAB Application Program Interface | Search  Help Desk |
| mexIsLocked | Examples See Also |
True if this MEX-file is locked
C Syntax
#include "mex.h" bool mexIsLocked(void);
Returns
True if the MEX-file is locked; False if the file is unlocked.
Description
CallmexIsLocked 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.
Example
Seemexlock.c in the mex subdirectory of the examples directory.
See Also
mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent, mexUnlock