Skip to content
Discussion options

You must be logged in to vote

There is nothing fundamental in the code that would make it incompatible with cross-thread communication.

All these sync primitives boil down to some internal logic and then either parking the current task/thread, or resuming the parked task/thread. All of those operations are safe across runtimes, or even foreign threads.

But there could he a specific bug in RwLock. I'll be honest I'm not super happy with the current RwLock in zio, it does thundering herd issues, which are technically okay, just inefficient.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@psznm
Comment options

@psznm
Comment options

@lalinsky
Comment options

Answer selected by psznm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants