diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-03-23 10:57:41 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-03-26 13:05:03 +0100 |
commit | 86153c191a6e0a6228d6d6c705a3e3271a4239be (patch) | |
tree | 42fe7b0eb37e07e15c1de2f5889a026be3b87ea0 /src/coroutinestoredfunctioncall_p.h | |
parent | 38ba7e1705dca0894f79b9a0de1327ee3cd4c0bf (diff) |
Separate stack creation from construction.
This allows having either a convenient Coroutine-owned stack or
passing in stack memory manually.
Diffstat (limited to 'src/coroutinestoredfunctioncall_p.h')
-rw-r--r-- | src/coroutinestoredfunctioncall_p.h | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/src/coroutinestoredfunctioncall_p.h b/src/coroutinestoredfunctioncall_p.h index 73e7ddb..bf55271 100644 --- a/src/coroutinestoredfunctioncall_p.h +++ b/src/coroutinestoredfunctioncall_p.h @@ -16,8 +16,8 @@ template <typename FunctionPointer> struct StoredFunctorCall0: public Coroutine { - inline StoredFunctorCall0(int stackSize, FunctionPointer function) - : Coroutine(stackSize), function(function) {} + inline StoredFunctorCall0(FunctionPointer function) + : function(function) {} protected: virtual void run() { function(); } FunctionPointer function; @@ -27,8 +27,8 @@ protected: template <typename FunctionPointer> struct StoredFunctorPointerCall0: public Coroutine { - inline StoredFunctorPointerCall0(int stackSize, FunctionPointer * function) - : Coroutine(stackSize), function(function) {} + inline StoredFunctorPointerCall0(FunctionPointer * function) + : function(function) {} protected: virtual void run() { (*function)(); } FunctionPointer * function; @@ -39,8 +39,8 @@ template <typename Class> class StoredMemberFunctionCall0 : public Coroutine { public: - StoredMemberFunctionCall0(int stackSize, void (Class::*fn)() , const Class &object) - : Coroutine(stackSize), fn(fn), object(object){ } + StoredMemberFunctionCall0(void (Class::*fn)() , const Class &object) + : fn(fn), object(object){ } protected: virtual void run() { @@ -55,8 +55,8 @@ template <typename Class> class StoredConstMemberFunctionCall0 : public Coroutine { public: - StoredConstMemberFunctionCall0(int stackSize, void (Class::*fn)() const, const Class &object) - : Coroutine(stackSize), fn(fn), object(object){ } + StoredConstMemberFunctionCall0(void (Class::*fn)() const, const Class &object) + : fn(fn), object(object){ } protected: virtual void run() { @@ -71,8 +71,8 @@ template <typename Class> class StoredMemberFunctionPointerCall0 : public Coroutine { public: - StoredMemberFunctionPointerCall0(int stackSize, void (Class::*fn)() , Class *object) - : Coroutine(stackSize), fn(fn), object(object){ } + StoredMemberFunctionPointerCall0(void (Class::*fn)() , Class *object) + : fn(fn), object(object){ } protected: virtual void run() { @@ -87,8 +87,8 @@ template <typename Class> class StoredConstMemberFunctionPointerCall0 : public Coroutine { public: - StoredConstMemberFunctionPointerCall0(int stackSize, void (Class::*fn)() const, Class const *object) - : Coroutine(stackSize), fn(fn), object(object){ } + StoredConstMemberFunctionPointerCall0(void (Class::*fn)() const, Class const *object) + : fn(fn), object(object){ } protected: virtual void run() { @@ -102,8 +102,8 @@ private: template <typename FunctionPointer, typename Arg1> struct StoredFunctorCall1: public Coroutine { - inline StoredFunctorCall1(int stackSize, FunctionPointer function, const Arg1 &arg1) - : Coroutine(stackSize), function(function), arg1(arg1) {} + inline StoredFunctorCall1(FunctionPointer function, const Arg1 &arg1) + : function(function), arg1(arg1) {} protected: virtual void run() { function(arg1); } FunctionPointer function; @@ -113,8 +113,8 @@ protected: template <typename FunctionPointer, typename Arg1> struct StoredFunctorPointerCall1: public Coroutine { - inline StoredFunctorPointerCall1(int stackSize, FunctionPointer * function, const Arg1 &arg1) - : Coroutine(stackSize), function(function), arg1(arg1) {} + inline StoredFunctorPointerCall1(FunctionPointer * function, const Arg1 &arg1) + : function(function), arg1(arg1) {} protected: virtual void run() { (*function)(arg1); } FunctionPointer * function; @@ -125,8 +125,8 @@ template <typename Class, typename Param1, typename Arg1> class StoredMemberFunctionCall1 : public Coroutine { public: - StoredMemberFunctionCall1(int stackSize, void (Class::*fn)(Param1) , const Class &object, const Arg1 &arg1) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1){ } + StoredMemberFunctionCall1(void (Class::*fn)(Param1) , const Class &object, const Arg1 &arg1) + : fn(fn), object(object), arg1(arg1){ } protected: virtual void run() { @@ -141,8 +141,8 @@ template <typename Class, typename Param1, typename Arg1> class StoredConstMemberFunctionCall1 : public Coroutine { public: - StoredConstMemberFunctionCall1(int stackSize, void (Class::*fn)(Param1) const, const Class &object, const Arg1 &arg1) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1){ } + StoredConstMemberFunctionCall1(void (Class::*fn)(Param1) const, const Class &object, const Arg1 &arg1) + : fn(fn), object(object), arg1(arg1){ } protected: virtual void run() { @@ -157,8 +157,8 @@ template <typename Class, typename Param1, typename Arg1> class StoredMemberFunctionPointerCall1 : public Coroutine { public: - StoredMemberFunctionPointerCall1(int stackSize, void (Class::*fn)(Param1) , Class *object, const Arg1 &arg1) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1){ } + StoredMemberFunctionPointerCall1(void (Class::*fn)(Param1) , Class *object, const Arg1 &arg1) + : fn(fn), object(object), arg1(arg1){ } protected: virtual void run() { @@ -173,8 +173,8 @@ template <typename Class, typename Param1, typename Arg1> class StoredConstMemberFunctionPointerCall1 : public Coroutine { public: - StoredConstMemberFunctionPointerCall1(int stackSize, void (Class::*fn)(Param1) const, Class const *object, const Arg1 &arg1) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1){ } + StoredConstMemberFunctionPointerCall1(void (Class::*fn)(Param1) const, Class const *object, const Arg1 &arg1) + : fn(fn), object(object), arg1(arg1){ } protected: virtual void run() { @@ -188,8 +188,8 @@ private: template <typename FunctionPointer, typename Arg1, typename Arg2> struct StoredFunctorCall2: public Coroutine { - inline StoredFunctorCall2(int stackSize, FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2) {} + inline StoredFunctorCall2(FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2) + : function(function), arg1(arg1), arg2(arg2) {} protected: virtual void run() { function(arg1, arg2); } FunctionPointer function; @@ -199,8 +199,8 @@ protected: template <typename FunctionPointer, typename Arg1, typename Arg2> struct StoredFunctorPointerCall2: public Coroutine { - inline StoredFunctorPointerCall2(int stackSize, FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2) {} + inline StoredFunctorPointerCall2(FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2) + : function(function), arg1(arg1), arg2(arg2) {} protected: virtual void run() { (*function)(arg1, arg2); } FunctionPointer * function; @@ -211,8 +211,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionCall2 : public Coroutine { public: - StoredMemberFunctionCall2(int stackSize, void (Class::*fn)(Param1, Param2) , const Class &object, const Arg1 &arg1, const Arg2 &arg2) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2){ } + StoredMemberFunctionCall2(void (Class::*fn)(Param1, Param2) , const Class &object, const Arg1 &arg1, const Arg2 &arg2) + : fn(fn), object(object), arg1(arg1), arg2(arg2){ } protected: virtual void run() { @@ -227,8 +227,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionCall2 : public Coroutine { public: - StoredConstMemberFunctionCall2(int stackSize, void (Class::*fn)(Param1, Param2) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2){ } + StoredConstMemberFunctionCall2(void (Class::*fn)(Param1, Param2) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2) + : fn(fn), object(object), arg1(arg1), arg2(arg2){ } protected: virtual void run() { @@ -243,8 +243,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionPointerCall2 : public Coroutine { public: - StoredMemberFunctionPointerCall2(int stackSize, void (Class::*fn)(Param1, Param2) , Class *object, const Arg1 &arg1, const Arg2 &arg2) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2){ } + StoredMemberFunctionPointerCall2(void (Class::*fn)(Param1, Param2) , Class *object, const Arg1 &arg1, const Arg2 &arg2) + : fn(fn), object(object), arg1(arg1), arg2(arg2){ } protected: virtual void run() { @@ -259,8 +259,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionPointerCall2 : public Coroutine { public: - StoredConstMemberFunctionPointerCall2(int stackSize, void (Class::*fn)(Param1, Param2) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2){ } + StoredConstMemberFunctionPointerCall2(void (Class::*fn)(Param1, Param2) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2) + : fn(fn), object(object), arg1(arg1), arg2(arg2){ } protected: virtual void run() { @@ -274,8 +274,8 @@ private: template <typename FunctionPointer, typename Arg1, typename Arg2, typename Arg3> struct StoredFunctorCall3: public Coroutine { - inline StoredFunctorCall3(int stackSize, FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2), arg3(arg3) {} + inline StoredFunctorCall3(FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) + : function(function), arg1(arg1), arg2(arg2), arg3(arg3) {} protected: virtual void run() { function(arg1, arg2, arg3); } FunctionPointer function; @@ -285,8 +285,8 @@ protected: template <typename FunctionPointer, typename Arg1, typename Arg2, typename Arg3> struct StoredFunctorPointerCall3: public Coroutine { - inline StoredFunctorPointerCall3(int stackSize, FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2), arg3(arg3) {} + inline StoredFunctorPointerCall3(FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) + : function(function), arg1(arg1), arg2(arg2), arg3(arg3) {} protected: virtual void run() { (*function)(arg1, arg2, arg3); } FunctionPointer * function; @@ -297,8 +297,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionCall3 : public Coroutine { public: - StoredMemberFunctionCall3(int stackSize, void (Class::*fn)(Param1, Param2, Param3) , const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } + StoredMemberFunctionCall3(void (Class::*fn)(Param1, Param2, Param3) , const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } protected: virtual void run() { @@ -313,8 +313,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionCall3 : public Coroutine { public: - StoredConstMemberFunctionCall3(int stackSize, void (Class::*fn)(Param1, Param2, Param3) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } + StoredConstMemberFunctionCall3(void (Class::*fn)(Param1, Param2, Param3) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } protected: virtual void run() { @@ -329,8 +329,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionPointerCall3 : public Coroutine { public: - StoredMemberFunctionPointerCall3(int stackSize, void (Class::*fn)(Param1, Param2, Param3) , Class *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } + StoredMemberFunctionPointerCall3(void (Class::*fn)(Param1, Param2, Param3) , Class *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } protected: virtual void run() { @@ -345,8 +345,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionPointerCall3 : public Coroutine { public: - StoredConstMemberFunctionPointerCall3(int stackSize, void (Class::*fn)(Param1, Param2, Param3) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } + StoredConstMemberFunctionPointerCall3(void (Class::*fn)(Param1, Param2, Param3) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3){ } protected: virtual void run() { @@ -360,8 +360,8 @@ private: template <typename FunctionPointer, typename Arg1, typename Arg2, typename Arg3, typename Arg4> struct StoredFunctorCall4: public Coroutine { - inline StoredFunctorCall4(int stackSize, FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4) {} + inline StoredFunctorCall4(FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) + : function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4) {} protected: virtual void run() { function(arg1, arg2, arg3, arg4); } FunctionPointer function; @@ -371,8 +371,8 @@ protected: template <typename FunctionPointer, typename Arg1, typename Arg2, typename Arg3, typename Arg4> struct StoredFunctorPointerCall4: public Coroutine { - inline StoredFunctorPointerCall4(int stackSize, FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4) {} + inline StoredFunctorPointerCall4(FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) + : function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4) {} protected: virtual void run() { (*function)(arg1, arg2, arg3, arg4); } FunctionPointer * function; @@ -383,8 +383,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionCall4 : public Coroutine { public: - StoredMemberFunctionCall4(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4) , const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } + StoredMemberFunctionCall4(void (Class::*fn)(Param1, Param2, Param3, Param4) , const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } protected: virtual void run() { @@ -399,8 +399,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionCall4 : public Coroutine { public: - StoredConstMemberFunctionCall4(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } + StoredConstMemberFunctionCall4(void (Class::*fn)(Param1, Param2, Param3, Param4) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } protected: virtual void run() { @@ -415,8 +415,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionPointerCall4 : public Coroutine { public: - StoredMemberFunctionPointerCall4(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4) , Class *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } + StoredMemberFunctionPointerCall4(void (Class::*fn)(Param1, Param2, Param3, Param4) , Class *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } protected: virtual void run() { @@ -431,8 +431,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionPointerCall4 : public Coroutine { public: - StoredConstMemberFunctionPointerCall4(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } + StoredConstMemberFunctionPointerCall4(void (Class::*fn)(Param1, Param2, Param3, Param4) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4){ } protected: virtual void run() { @@ -446,8 +446,8 @@ private: template <typename FunctionPointer, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> struct StoredFunctorCall5: public Coroutine { - inline StoredFunctorCall5(int stackSize, FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5) {} + inline StoredFunctorCall5(FunctionPointer function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) + : function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5) {} protected: virtual void run() { function(arg1, arg2, arg3, arg4, arg5); } FunctionPointer function; @@ -457,8 +457,8 @@ protected: template <typename FunctionPointer, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> struct StoredFunctorPointerCall5: public Coroutine { - inline StoredFunctorPointerCall5(int stackSize, FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) - : Coroutine(stackSize), function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5) {} + inline StoredFunctorPointerCall5(FunctionPointer * function, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) + : function(function), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5) {} protected: virtual void run() { (*function)(arg1, arg2, arg3, arg4, arg5); } FunctionPointer * function; @@ -469,8 +469,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionCall5 : public Coroutine { public: - StoredMemberFunctionCall5(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) , const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } + StoredMemberFunctionCall5(void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) , const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } protected: virtual void run() { @@ -485,8 +485,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionCall5 : public Coroutine { public: - StoredConstMemberFunctionCall5(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } + StoredConstMemberFunctionCall5(void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } protected: virtual void run() { @@ -501,8 +501,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredMemberFunctionPointerCall5 : public Coroutine { public: - StoredMemberFunctionPointerCall5(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) , Class *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } + StoredMemberFunctionPointerCall5(void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) , Class *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } protected: virtual void run() { @@ -517,8 +517,8 @@ template <typename Class, typename Param1, typename Arg1, typename Param2, typen class StoredConstMemberFunctionPointerCall5 : public Coroutine { public: - StoredConstMemberFunctionPointerCall5(int stackSize, void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) - : Coroutine(stackSize), fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } + StoredConstMemberFunctionPointerCall5(void (Class::*fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *object, const Arg1 &arg1, const Arg2 &arg2, const Arg3 &arg3, const Arg4 &arg4, const Arg5 &arg5) + : fn(fn), object(object), arg1(arg1), arg2(arg2), arg3(arg3), arg4(arg4), arg5(arg5){ } protected: virtual void run() { |