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 mex subdirectory of the examples directory.

See Also

mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent, mexUnlock

  


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