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

How to wait for the mountpoint to be ready ? #325

Open
FirelightFlagboy opened this issue Dec 18, 2024 · 0 comments
Open

How to wait for the mountpoint to be ready ? #325

FirelightFlagboy opened this issue Dec 18, 2024 · 0 comments

Comments

@FirelightFlagboy
Copy link
Contributor

FirelightFlagboy commented Dec 18, 2024

How should I wait for the mountpoint to be ready ?

When I create a mountpoint using Session::spawn, I consider it to be ready once the Filesystem::init method is called.
To wait for that event, I'm using a Mutex<bool> and a Condvar to signal the event and set them at the end of the init method.

This work well enough on Linux,
but on macOS I suspect this is causing some of my tests to be flaky because the mountpoint is not ready at that point.

Currently I don't see any other way to wait for the mountpoint to be ready, maybe It's something that could be added to Session/BackgroundSession.

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

No branches or pull requests

1 participant