1
0
Fork 0
mirror of synced 2024-06-02 18:54:41 +12:00
Rare/rare/lgndr
loathingKernel f361828f37
Lgndr: Replace _installed_lock with a non-thread-local instance.
Since Python 3.11, `FileLock` is thread-local by default, which causes
numerous issues with Rare because of numerous operations running in
`QThreads` and `QRunnables`. To work around it, add a monkey LGDLFS class
that uses a non-thread-local instance of `FileLock`. Since the monkey class
exists, implement a `unlock_installed` method for code clarity

* Add decorate `LegendaryCore.egl_sync` with `unlock_installed`
* Log that Rare's monkeys are in use
* Add function signature protocols based on `typing.Protocol`
2023-12-13 15:05:01 +02:00
..
downloader Lgndr: Replace _installed_lock with a non-thread-local instance. 2023-12-13 15:05:01 +02:00
glue Lgndr: Replace _installed_lock with a non-thread-local instance. 2023-12-13 15:05:01 +02:00
lfs Lgndr: Replace _installed_lock with a non-thread-local instance. 2023-12-13 15:05:01 +02:00
models Downloads: Code clarity 2023-11-28 16:38:02 +02:00
__init__.py Lgndr: Create argument models for consistent function arguments and cleaner implementation. 2022-08-02 10:42:38 +03:00
cli.py Lgndr: Replace _installed_lock with a non-thread-local instance. 2023-12-13 15:05:01 +02:00
core.py Lgndr: Replace _installed_lock with a non-thread-local instance. 2023-12-13 15:05:01 +02:00