-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Hi folks,
I'm looking at bakebit_nanohat_oled.py, and despite being very new to python, it seems to me that the lock that is attempted to make sure the draw code is not re-entrant, is broken.
`
lock.acquire()
is_drawing = drawing
page_index = pageIndex
lock.release()
if is_drawing:
return
lock.acquire()
drawing = True
lock.release()
`
Two threads can easily reach the if statement, then both will proceed to set drawing=True. What am I missing? Cheers!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels