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

Question about callbacks called from "SCTP iterator" thread #575

Open
nazar-pc opened this issue Mar 8, 2021 · 0 comments
Open

Question about callbacks called from "SCTP iterator" thread #575

nazar-pc opened this issue Mar 8, 2021 · 0 comments

Comments

@nazar-pc
Copy link
Contributor

nazar-pc commented Mar 8, 2021

I'm not familiar with the library, but while hacking on mediasoup the question arose in versatica/mediasoup#523 as to whether "SCTP iterator" calls any of the callbacks from following functions?:

  • usrsctp_init_nothreads
  • usrsctp_socket

If the answer is "yes", then my hacking would be blocked by #472.

The use case is that it would be trivial to get mediasoup's worker, that uses usrsctp, to run in a thread if it could use thread-local storage instead of resorting to something more invasive (it currently uses global state for some of its internals). But if callbacks to mentioned functions can be called from other thread then that clearly wouldn't work.

UPD: After further research seems to be a subset of #439

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