summaryrefslogtreecommitdiff
path: root/src/common/fiber.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common/fiber: make fibers easier to useGravatar Liam2022-07-021-5/+2
|
* general: Convert source file copyright comments over to SPDXGravatar Morph2022-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.
* common: Fiber: use a reference for YieldTo.Gravatar bunnei2021-03-071-1/+1
| | | | - Fixes another small leak.
* common: fiber: Use weak_ptr when yielding.Gravatar bunnei2021-03-051-1/+1
| | | | | - 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."Gravatar bunnei2021-03-051-2/+2
|
* core: Switch to unique_ptr for usage of Common::Fiber.Gravatar bunnei2021-02-271-2/+2
| | | | | - 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 boost::context instead of native fibers on Windows.Gravatar bunnei2020-11-291-9/+0
|
* common/fiber: Move all member variables into impl classGravatar Lioncash2020-11-061-17/+3
| | | | | | 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.
* General: Fix clang buildGravatar Lioncash2020-11-051-2/+2
| | | | Allows building on clang to work again
* common: Enable warnings as errorsGravatar Lioncash2020-11-021-1/+1
| | | | Cleans up common so that we can enable warnings as errors.
* common/fiber: Take shared_ptr<Fiber> by copy in YieldToGravatar ReinUsesLisp2020-10-281-1/+1
| | | | | YieldTo does not intend to modify the passed shared_ptrs. Pass it by copy to keep a reference count while this function executes.
* Revert "core: Fix clang build"Gravatar bunnei2020-10-201-2/+2
|
* core: Fix clang buildGravatar Lioncash2020-10-171-2/+2
| | | | | | | 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 applicableGravatar Lioncash2020-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.
* Common/Fiber: Address Feedback and Correct Memory leaks.Gravatar Fernando Sahmkow2020-06-181-8/+9
|
* Common/Fiber: Implement Rewind on Boost Context.Gravatar Fernando Sahmkow2020-06-181-0/+2
|
* Common/Fiber: Document fiber interexchange.Gravatar Fernando Sahmkow2020-06-181-1/+4
|
* Common/Fiber: Implement Rewinding.Gravatar Fernando Sahmkow2020-06-181-0/+8
|
* Common/Tests: Address FeedbackGravatar Fernando Sahmkow2020-06-181-4/+4
|
* Common: Make MinGW build use Windows Fibers instead of fcontext_tGravatar Fernando Sahmkow2020-06-181-2/+2
|
* Common/Tests: Clang Format.Gravatar Fernando Sahmkow2020-06-181-1/+1
|
* Common: Polish Fiber class, add comments, asserts and more tests.Gravatar Fernando Sahmkow2020-06-181-2/+12
|
* Tests: Add tests for fibers and refactor/fix Fiber classGravatar Fernando Sahmkow2020-06-181-3/+16
|
* Common: Implement a basic Fiber class.Gravatar Fernando Sahmkow2020-06-181-0/+55