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

non-blocking read/write #15

Open
ssfrr opened this issue May 6, 2018 · 1 comment
Open

non-blocking read/write #15

ssfrr opened this issue May 6, 2018 · 1 comment

Comments

@ssfrr
Copy link
Collaborator

ssfrr commented May 6, 2018

Currently reading or writing from a LibSndFile stream blocks all of Julia because it uses libsndfile's read and write functions. If we could do the read/write in a separate thread and then notify an AsyncCondition condition, the Julia Task could just wait on the condition. Not sure if that could be done in pure Julia or if I'd need a little C shim, but that wouldn't be so bad...

@ssfrr
Copy link
Collaborator Author

ssfrr commented Nov 20, 2019

It seems that @threadcall is designed for exactly this use-case.

edit: Whoops, according to stefan it looks like as of Julia 1.3 @spawn is the way to go.

ssfrr added a commit that referenced this issue Nov 20, 2019
ssfrr added a commit that referenced this issue Nov 20, 2019
ssfrr added a commit that referenced this issue Feb 25, 2020
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