Using the Python methods, this is pretty simple: from threading import Thread, Lock mutex = Lock() def processData(data): mutex.acquire() ...
確定! 回上一頁