1 2 3 4 5 6 7 8 9 10
import sys def mlockall_current(): if not sys.platform.startswith('linux'): return -1 import library.python.mlockall.mlockall as ml return ml.mlockall_current()