mirror of
https://github.com/SantaSpeen/winmutex.git
synced 2026-07-25 08:10:53 +00:00
[>] pywinmutex > winmutex
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
from pywinmutex import WindowsMutex
|
||||
from winmutex import WindowsMutex
|
||||
|
||||
mutex = WindowsMutex("anidev/pywinmutex/simple", True) # Name may be any string
|
||||
mutex = WindowsMutex("anidev/winmutex/simple", True) # Name may be any string
|
||||
mutex.timeout = 2500 # Set a timeout of 2.5 seconds
|
||||
|
||||
with mutex:
|
||||
|
||||
Reference in New Issue
Block a user