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 prevent master thread from being scheduled? #38

Closed
vinjn opened this issue Sep 15, 2019 · 4 comments
Closed

How to prevent master thread from being scheduled? #38

vinjn opened this issue Sep 15, 2019 · 4 comments
Labels

Comments

@vinjn
Copy link

vinjn commented Sep 15, 2019

enkiTS is an excellent library to serve my project, which is running multiple OpenGL contexts on multiple GPUs.
In my design, master thread is running light-weighted workloads, which means it should never be scheduled to run any ITaskSet tasks.
Is it possible?

@dougbinks
Copy link
Owner

dougbinks commented Sep 15, 2019 via email

@vinjn vinjn changed the title How to blacklist certain threads from being picked? How to prevent master thread from being scheduled? Sep 15, 2019
@vinjn
Copy link
Author

vinjn commented Sep 15, 2019

Thanks @dougbinks

you can use the priority system to prevent certain tasks from running when this is called.

Can you give more details? It seems I need to use WaitforTask and ICompletable::m_Priority to achieve it. But how?

@dougbinks
Copy link
Owner

dougbinks commented Sep 15, 2019 via email

@dougbinks
Copy link
Owner

I think this question is now answered, so I'm going to close it unless there are any further questions or issues on this topic.

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

No branches or pull requests

2 participants