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

Describe accurate threading model #91

Open
youennf opened this issue Mar 22, 2021 · 2 comments
Open

Describe accurate threading model #91

youennf opened this issue Mar 22, 2021 · 2 comments

Comments

@youennf
Copy link
Collaborator

youennf commented Mar 22, 2021

Currently, we are not precisely describing the threading model and instead rely on pipeTo et al.
We should probably define a encoded media thread which is the thread on which happen the generation and consumption of frames.
And the thread of the window + the thread of the worker.
We could post/enqueue tasks between the various threads which would further clarify things.

@alvestrand
Copy link
Collaborator

The generation and consumption of frames is likely to happen on different threads than their JS processing, so any threading model that tries to include the generation and consumption itself is likely to be misleading.

We should concentrate on the events that concern frames appearing to the worker and what happens when the worker enqueues a frame (+ special events like thread end), and leave everything else as "out of scope for specification".

@alvestrand
Copy link
Collaborator

I see that #107 seems to describe the threading model the way I think it should be described (modulo my current lack of understanding of that PR).

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

No branches or pull requests

2 participants