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

Add internal task queue to the named_thread #9838

Merged
merged 4 commits into from Feb 28, 2021
Merged

Conversation

Nekotekina
Copy link
Member

Since it's hard and tricky to properly use lf_queue and other explicit channel mechanisms, and they weren't that great anyway.

@Nekotekina
Copy link
Member Author

I implemented core functionality but it's untested.

Use SFINAE as permitted by std::invoke_result_t<>
Fixup "sleepy" thread at startup on Windows.
Permit threads which lack operator()() overload.
atomic_ptr: implement push_head()

thread_ctrl::state() triggers task queue execution.
@Nekotekina Nekotekina changed the title [WIP] Add some nasty features to named_thread Add some nasty features to named_thread Feb 28, 2021
@Nekotekina
Copy link
Member Author

Seems more or less working

@Nekotekina Nekotekina changed the title Add some nasty features to named_thread Add internal task queue to the named_thread Feb 28, 2021
@Nekotekina Nekotekina merged commit f580bee into RPCS3:master Feb 28, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant