summaryrefslogtreecommitdiffstats
path: root/src/common/fiber.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: fix spelling mistakesLiam2023-03-121-1/+1
|
* common/fiber: make fibers easier to useLiam2022-07-021-15/+6
|
* 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.
* hle: kernel: Use std::mutex instead of spin locks for most kernel locking.bunnei2022-04-121-2/+3
|
* common: fiber: YieldTo: Avoid hard crash on nullptr previous_fiber.bunnei2022-01-151-1/+4
| | | | - When the emulator crashes to desktop below, we don't even get this captured in a log, making such issues harder to debug.
* fiber: Double default stack sizeMerryMage2021-03-101-1/+1
| | | | Stack overflow occurs with some guest applications
* common: Fiber: use a reference for YieldTo.bunnei2021-03-071-7/+5
| | | | - Fixes another small leak.
* common: fiber: Use weak_ptr when yielding.bunnei2021-03-061-7/+12
| | | | | - Avoids a memory leak, as taking a strong reference of the fiber here causes a circular reference. - Supersedes #6006 with a more narrow fix.
* Revert "core: Switch to unique_ptr for usage of Common::Fiber."bunnei2021-03-061-7/+7
|
* core: Switch to unique_ptr for usage of Common::Fiber.bunnei2021-02-271-7/+7
| | | | | - 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.
* common: fiber: Use VirtualBuffer for stack memory.bunnei2020-11-291-2/+5
| | | | - This will be aligned by default, and helps memory usage.
* common: fiber: Use boost::context instead of native fibers on Windows.bunnei2020-11-291-106/+8
|
* common/fiber: Move all member variables into impl classLioncash2020-11-071-72/+83
| | | | | | 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.
* common: Enable warnings as errorsLioncash2020-11-021-4/+4
| | | | Cleans up common so that we can enable warnings as errors.
* common/fiber: Take shared_ptr<Fiber> by copy in YieldToReinUsesLisp2020-10-281-2/+2
| | | | | YieldTo does not intend to modify the passed shared_ptrs. Pass it by copy to keep a reference count while this function executes.
* Core/Common: Address Feedback.Fernando Sahmkow2020-06-281-7/+3
|
* Common/Fiber: Address Feedback and Correct Memory leaks.Fernando Sahmkow2020-06-181-26/+32
|
* Common/Fiber: Implement Rewind on Boost Context.Fernando Sahmkow2020-06-181-2/+37
|
* Common/Fiber: Implement Rewinding.Fernando Sahmkow2020-06-181-2/+30
|
* Common/Fiber: Additional corrections to f_context.Fernando Sahmkow2020-06-181-4/+4
|
* Common/Fiber: Correct f_context based Fibers.Fernando Sahmkow2020-06-181-6/+8
|
* Core/HostTiming: Allow events to be advanced manually.Fernando Sahmkow2020-06-181-1/+1
|
* Common/Tests: Address FeedbackFernando Sahmkow2020-06-181-3/+2
|
* Common: Make MinGW build use Windows Fibers instead of fcontext_tFernando Sahmkow2020-06-181-2/+2
|
* Common/Tests: Clang Format.Fernando Sahmkow2020-06-181-11/+10
|
* Common: Correct fcontext fibers.Fernando Sahmkow2020-06-181-5/+4
|
* Common: Polish Fiber class, add comments, asserts and more tests.Fernando Sahmkow2020-06-181-22/+33
|
* Tests: Add tests for fibers and refactor/fix Fiber classFernando Sahmkow2020-06-181-16/+16
|
* Common: Implement a basic Fiber class.Fernando Sahmkow2020-06-181-0/+147