This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mexIsLocked (C and Fortran)

Determine if MEX-file is locked

C Syntax

#include "mex.h"
bool mexIsLocked(void);

Fortran Syntax

#include "fintrf.h"
integer*4 mexIsLocked()


Logical 1 (true) if the MEX-file is locked; logical 0 (false) if the file is unlocked.


Call 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 mexUnlock.


See the following examples in matlabroot/extern/examples/mex.

Was this topic helpful?