aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/coroutine.h
AgeCommit message (Collapse)Author
2011-06-20TINSEL: Fix/comment CORO_KILL_SELF macro.Alyssa Milburn
This reverts 9573b1d2f54818f9bdac4a91e0a90b306ade7810, which changed the behaviour of (among other things) NewScene, which made Discworld uncompletable. Thanks to digitall for bisection/reproduction.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-01-30TINSEL: Memory Leak Fix in Coroutines.David Turner
This fixes the leak from the COR0_BEGIN_CODE macro's CoroContextTag allocation. Setting the _sleep value to negative values prevented the deallocation of these. Have tested for obvious regressions, but a full DW/DW2 playtest should be done to confirm that this doesn't cause any issues. Thanks to fingolfin for indicating this solution. svn-id: r55671
2010-10-31TINSEL: Reintroduce DUMMY variable removed in r53932Ori Avtalion
This placates compilers that complain about the semicolon in "CORO_BEGIN_CONTEXT;" svn-id: r53992
2010-10-30TINSEL: Fix subtle leak in coroutine code, some minor tweaksMax Horn
* Fix a bug which caused coroutines invoked with nullContext to leak their state. Sadly, nullContext is underdocumented, yet very delicate and full of subtleties... ./ * Move nullContext decl from sched.cpp to coroutine.cpp * Enhance a few doxygen comments svn-id: r53934
2010-10-30TINSEL: Add COROUTINE_DEBUG macro to ease debugging coroutine codeMax Horn
svn-id: r53932
2009-10-04Change a couple places from 'end of namespace' to 'End of namespace', for ↵Max Horn
consistency svn-id: r44634
2009-09-30Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵Max Horn
things) svn-id: r44495
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-04-09TINSEL: Added some doxygen comments to the Tinsel coroutine codeMax Horn
svn-id: r39908
2009-01-29A ton of code formatting fixes; also fixed warnings about single line loops ↵Max Horn
like 'while(cond);' by inserting newlines svn-id: r36127
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-01Merged the tinsel 2 engine with tinsel 1. Both Discworld 1 and Discworld 2 ↵Filippos Karapetis
should be completable svn-id: r35196
2008-07-24Moved scheduler / process managment code into a new class SchedulerMax Horn
svn-id: r33259
2008-07-23Added Tinsel engine to main repos (no news item for it ON PURPOSE)Max Horn
svn-id: r33230