Determine if MEX file is locked
#include "mex.h" bool mexIsLocked(void);
#include "fintrf.h" integer*4 mexIsLocked()
mexIsLocked to determine if the MEX file is locked. By default, MEX
files are unlocked, meaning you can clear the MEX file at any time.
To unlock a MEX file, call
Status, returned as
in C or
1 in Fortran) if the MEX file is locked. Returns
0 in C or
0 in Fortran) if the file is unlocked.