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

New atomic fixups #9259

Merged
merged 3 commits into from Nov 13, 2020
Merged

New atomic fixups #9259

merged 3 commits into from Nov 13, 2020

Conversation

Nekotekina
Copy link
Member

@Nekotekina Nekotekina commented Nov 13, 2020

Fixed some bugs in thread pool as well.

Remove unnecessary optimization from cond_alloc().
Optimistic case was absolutely dominating anyway.
Although the whole function is a dirty hack.
Now scanning through all threads is faster.
Also added missing const noexcept.
Use 128-bit allocator instead of queue.
When pool is full (128), threads just terminate as before.
@Nekotekina
Copy link
Member Author

Nekotekina commented Nov 13, 2020

TODO: get_cycles() doesn't make sense sometimes. Not sure if caused by thread pool.
TODO: make a trampoline hack because MSVC cannot tail calls.

@Nekotekina Nekotekina merged commit ab365fe into RPCS3:master Nov 13, 2020
Nekotekina added a commit to Nekotekina/rpcs3 that referenced this pull request Nov 21, 2020
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