| External Interfaces/API Reference | ![]() |
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
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.
Example
See mexlock.c in the mex subdirectory of the examples directory.
See Also
mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent, mexUnlock
| mexIsInf (Obsolete) | mexIsNaN (Obsolete) | ![]() |