def lock(self, function, argument):
        if self.testandset():
            function(argument)
        else:
            self.queue.append((function, argument))
Lock a mutex, call the function with supplied argument
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/mutex.py/mutex.lock