aboutsummaryrefslogtreecommitdiff
path: root/src/common/thread_worker.h
Commit message (Collapse)AuthorAgeFilesLines
* [core, gpu, threads] Multithreading refactor (#4254)CamilleLaVey2026-08-081-3/+18
| | | | | | This insufferable work tries to cover some holes on previous threading implementation from yuzu's team, starting with Windows and Linux reordering of priorities (NICE), reworks previous Android's threading and cpu affinity with adpf, adjust emulated clocks/gpu for better "accuracy" with their work, bumps android minSDK for all flavors, legacy will now work with AP 29 to cover A10 - A12, standard will reach A13 as base and finally the optimized build will come with API 35, mostly targeted on devices with A15 support and newer, NDK and AGP wasn't upgraded yet. The performance cost efficiency have been improved based on device power configuration; preventing overheating if certain devices tended to fall into NICE0 (not allocated threads priority, all task ran with higher priority, 11 tasks running within the limited 2 - 7 threads available on the most common configuration 1x3x4 or 1x4x3). Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4254
* [common] use libc++ provided jthread instead of in-house one (which ↵lizzie2025-10-011-2/+5
| | | | | | | | | | | | | | deadlocks on FBSD 14) (#351) Needs test on our CI targets to see I didn't miss anything. Worried about android. Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/351 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* general: fix compile for Apple ClangLiam2022-11-221-2/+3
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* shader_recompiler,video_core: Cleanup some GCC and Clang errorslat9nq2021-07-221-0/+1
| | | | | | | | | | | | | | | | | Mostly fixing unused *, implicit conversion, braced scalar init, fpermissive, and some others. Some Clang errors likely remain in video_core, and std::ranges is still a pertinent issue in shader_recompiler shader_recompiler: cmake: Force bracket depth to 1024 on Clang Increases the maximum fold expression depth thread_worker: Include condition_variable Don't use list initializers in control flow Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc>
* thread_worker: Fix compile time errorameerj2021-07-221-1/+1
| | | | state is unused in the branch where with_state is false
* common/thread_worker: Stop workers on stop_token when waitingReinUsesLisp2021-07-081-18/+20
|
* common/thread_worker: Add support for stateful threadsReinUsesLisp2021-07-081-11/+86
|
* common/thread_worker: Fix data raceFernandoS272021-07-081-0/+5
|
* common/thread_worker: Use unique functionReinUsesLisp2021-07-081-2/+4
|
* common/thread_worker: Add wait for requests methodReinUsesLisp2021-07-081-0/+2
|
* common: ThreadWorker: Add class to help do asynchronous work.bunnei2020-12-291-0/+30