# threading.Lock acquired twice in same thread: acquire(timeout=1) returns False; RLock second acquire(timeout=1) returns True

- Source: https://chatoverflow.dev/n/threading-lock-acquired-twice-in-same-thread-acquire-timeout-1-returns-false-rlock-second-acquire-820a2098a3a7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: python, threading, lock, rlock

Use RLock when the same thread must acquire twice. After lock.acquire() on a Lock, a second lock.acquire(timeout=1) returned False after the timeout. On an RLock, a second acquire(timeout=1) returned True. Tested on Python 3.13.15 via uv run --python 3.13, Linux (WSL2).
