summaryrefslogtreecommitdiff
path: root/src/common/fiber.cpp
AgeCommit message (Collapse)Author
2025-01-14Revert incorrect copyright attribution for non-contributed filesZephyron
- In commit b3facaa6bb30cdc39f2b7d632fef1e3bfeee7785, the copyright header was updated to include "Citron Homebrew Project" across multiple files, regardless of whether any contributions were made. - This commit removes the incorrect attribution and reverts the copyright header to its previous state. - Copyright attribution should only be added when meaningful contributions have been made to the file. - This commit ensures proper compliance with copyright standards and maintains correct attribution to the respective contributors. - Special thanks to Tachi for pointing out the need for these corrections and ensuring that proper attribution practices are followed.
2024-12-31chore: update project references and add Citron copyrightZephyron
- Replaced all references to the old project name with Citron. - Added Citron copyright information alongside existing notices in all files.
2023-03-12general: fix spelling mistakesLiam
2022-07-02common/fiber: make fibers easier to useLiam
2022-04-23general: Convert source file copyright comments over to SPDXMorph
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.
2022-04-11hle: kernel: Use std::mutex instead of spin locks for most kernel locking.bunnei
2022-01-14common: fiber: YieldTo: Avoid hard crash on nullptr previous_fiber.bunnei
- When the emulator crashes to desktop below, we don't even get this captured in a log, making such issues harder to debug.
2021-03-10fiber: Double default stack sizeMerryMage
Stack overflow occurs with some guest applications
2021-03-07common: Fiber: use a reference for YieldTo.bunnei
- Fixes another small leak.
2021-03-05common: fiber: Use weak_ptr when yielding.bunnei
- Avoids a memory leak, as taking a strong reference of the fiber here causes a circular reference. - Supersedes #6006 with a more narrow fix.
2021-03-05Revert "core: Switch to unique_ptr for usage of Common::Fiber."bunnei
2021-02-27core: Switch to unique_ptr for usage of Common::Fiber.bunnei
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context. - Fixes a memory leak due to circular reference of the shared pointer.
2020-11-29common: fiber: Use VirtualBuffer for stack memory.bunnei
- This will be aligned by default, and helps memory usage.
2020-11-29common: fiber: Use boost::context instead of native fibers on Windows.bunnei
2020-11-06common/fiber: Move all member variables into impl classLioncash
Hides all of the implementation details for users of the class. This has the benefit of reducing includes and also making the fiber classes movable again.
2020-11-02common: Enable warnings as errorsLioncash
Cleans up common so that we can enable warnings as errors.
2020-10-28common/fiber: Take shared_ptr<Fiber> by copy in YieldToReinUsesLisp
YieldTo does not intend to modify the passed shared_ptrs. Pass it by copy to keep a reference count while this function executes.
2020-06-27Core/Common: Address Feedback.Fernando Sahmkow
2020-06-18Common/Fiber: Address Feedback and Correct Memory leaks.Fernando Sahmkow
2020-06-18Common/Fiber: Implement Rewind on Boost Context.Fernando Sahmkow
2020-06-18Common/Fiber: Implement Rewinding.Fernando Sahmkow
2020-06-18Common/Fiber: Additional corrections to f_context.Fernando Sahmkow
2020-06-18Common/Fiber: Correct f_context based Fibers.Fernando Sahmkow
2020-06-18Core/HostTiming: Allow events to be advanced manually.Fernando Sahmkow
2020-06-18Common/Tests: Address FeedbackFernando Sahmkow
2020-06-18Common: Make MinGW build use Windows Fibers instead of fcontext_tFernando Sahmkow
2020-06-18Common/Tests: Clang Format.Fernando Sahmkow
2020-06-18Common: Correct fcontext fibers.Fernando Sahmkow
2020-06-18Common: Polish Fiber class, add comments, asserts and more tests.Fernando Sahmkow
2020-06-18Tests: Add tests for fibers and refactor/fix Fiber classFernando Sahmkow
2020-06-18Common: Implement a basic Fiber class.Fernando Sahmkow