mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 06:02:12 -04:00
12 lines
196 B
Python
12 lines
196 B
Python
#!/usr/bin/env python3
|
|
|
|
import threading
|
|
|
|
l = threading.Lock()
|
|
print("Before first lock acquire.")
|
|
|
|
l.acquire()
|
|
print("Before second lock acquire.")
|
|
|
|
l.acquire()
|
|
print("Lock was acquired twice")
|