Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid 1s delay on consequent lock in windows #66

Closed
wants to merge 1 commit into from
Closed

Avoid 1s delay on consequent lock in windows #66

wants to merge 1 commit into from

Conversation

awaizman1
Copy link

use winapi LockFile instead of msvcrt.locking in order to avoid 1s delay when file is locked

in windows when the file is locked (using msvcrt.locking) another attempt to lock it will take 1s (just to see its already locked). using winapi FileLock instead doesn't have this buggy implemetation.
for more details see this issue

use winapi LockFile instead of msvcrt.locking in order to avoid 1s delay when file is locked
@awaizman1 awaizman1 changed the title Update filelock.py Avoid 1s delay on consequent lock in windows Apr 5, 2020
Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please rebase it on the latest main? You'll need to add some tests for it too, Thanks!

Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please rebase it on the latest main? You'll need to add some tests for it too, Thanks!

@gaborbernat
Copy link
Member

Closing due to lack of response, we'll reopen if this gets traction again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants