The resource loading... loading...

acquire

The acquire() function is used to request a thread lock (lock).

acquire()

Please refer to the threading.Lock() section for examples.

The acquire() function is used to request a thread lock. When a thread calls the acquire() function of a thread lock object, it attempts to acquire the lock. If the lock is not currently held by another thread, the calling thread successfully acquires the lock and continues execution. If the lock is already held by another thread, the thread calling acquire() will be blocked until the lock is released.

{@fun/Threads/threading/Lock Lock}, {@fun/Threads/ThreadLock/release release}

Thread release