Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

mexIsLocked (C and Fortran) - Determine whether MEX-file is locked

C Syntax

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

Fortran Syntax

integer*4 mexIsLocked()

Returns

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

Description

Call mexIsLocked to determine whether the MEX-file is locked. By default, MEX-files are unlocked, meaning that users can clear the MEX-file at any time.

To unlock a MEX-file, call mexUnlock.

C Examples

See mexlock.c in the matlabroot/extern/examples/mex folder .

See Also

mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent, mexUnlock

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS