@classmethod
def getMLock(cls):
    """Get AWLSIM_MLOCK.
		Returns one of the MLOCK_... constants.
		"""
    mlockStr = cls.__getVar('MLOCK', '').lower().strip()
    if not mlockStr:
        mlockStr = cls.MLOCK_OFF
    try:
        mlock = int(mlockStr)
        if mlock not in {cls.MLOCK_OFF, cls.MLOCK_ALL, cls.MLOCK_FORCEALL}:
            raise ValueError
    except ValueError as e:
        return cls.MLOCK_OFF
    return mlock
