aboutsummaryrefslogtreecommitdiff
path: root/src/common/spin_lock.h
Commit message (Collapse)AuthorAgeFilesLines
* [common] Replace `Common::SpinLock` with `std::mutex` (#4436)lizzie2026-09-161-50/+0
| | | | | | | | | | | | | | | | | | `std::mutex` can be better than the spin-lock specially since we don't waste CPU cycles for no reason. Test less stuttering/heat consumption. Signed-off-by: lizzie <lizzie@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4436 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
* [common] move spinlock to pure header def (#3287)lizzie2026-01-131-19/+36
| | | | | | | | | | | | inline justified because it's like 4-5 assembly instructions max Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3287 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* 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.
* General: Fix clang buildLioncash2020-11-051-0/+8
| | | | Allows building on clang to work again
* Revert "core: Fix clang build"bunnei2020-10-201-8/+0
|
* core: Fix clang buildLioncash2020-10-171-0/+8
| | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* common: Make use of [[nodiscard]] where applicableLioncash2020-08-151-1/+1
| | | | | | Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
* Core/Common: Address Feedback.Fernando Sahmkow2020-06-271-0/+5
|
* Common: Polish Fiber class, add comments, asserts and more tests.Fernando Sahmkow2020-06-181-0/+1
|
* Common: Implement a basic SpinLock classFernando Sahmkow2020-06-181-0/+20