Commit Graph

16 Commits

Author SHA1 Message Date
D G Turner
dca112f94b COMMON: Fix Missing Default Switch Case in Coroutine Macros
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-21 00:19:41 +01:00
Bastien Bouclet
955e18c648 COMMON: Use nullptr instead of NULL or 0 where appropriate 2018-05-10 08:35:46 +02:00
Johannes Schickel
854e22b38b COMMON: Make GPL headers consistent in themselves. 2014-02-18 02:39:33 +01:00
Eugene Sandulenko
c55411a032 COMMON: Shut more Coverity warnings in coroutines. 2013-09-21 22:45:43 +03:00
Eugene Sandulenko
91bcfb290a COMMON: Use unused variables in coroutine macros.
This should fix couple of hundreds of Coverity detected defects.
2013-09-21 09:49:17 +03:00
Paul Gilbert
269ea2f6be COMMON: Change pulseEvent to better reflect how it works in Windows 2012-06-17 17:29:20 +10:00
Johannes Schickel
8e7f874db3 COMMON: Make CoroutineScheduler's constructor and destructor private.
CoroutineSchedule is a singleton, thus it should not be possible to create
a custom instance of it.
2012-06-07 18:11:38 +02:00
Johannes Schickel
27aa097449 COMMON: Slightly adapt coroutine code to better match our guidelines.
I used astyle here, which automatically removes the use of tabs in comments.
2012-06-07 18:06:59 +02:00
Johannes Schickel
b17b38cc36 COMMON: Move coroutine documentation to the header file. 2012-06-07 18:06:13 +02:00
Paul Gilbert
29ebb2823d COMMON: Fix comment typo in coroutine comments 2012-05-31 08:06:59 +10:00
Paul Gilbert
415831987d COMMON: Copied coroutine doxygen method descriptions to the header file 2012-05-29 21:51:10 +10:00
Paul Gilbert
a2b51174aa COMMON: Cleaned up coroutine comments 2012-05-25 23:36:18 +10:00
Paul Gilbert
2341570e04 COMMON: Converted Coro context structure definitions to instead use classes.
This fixes a known problem with class variables declared in a method's context definition were not having their destructors called.
2012-05-17 20:47:56 +10:00
Paul Gilbert
bd5b65f007 COMMON: Fix compilation of coroutines code when COROUTINE_DEBUG is defined 2012-05-17 20:47:02 +10:00
Paul Gilbert
8153d7868b COMMON: Improved waiting processes to store what PIDs they're waiting for
This is then used in PulseEvent to only execute processes that are specifically waiting on the given PID, rather than all waiting events.
2012-05-17 20:45:31 +10:00
Paul Gilbert
c6810c174e COMMON: Moved the Tinsel Coroutine code into it's own Common class 2012-05-17 20:39:55 +10:00