This commit is contained in:
aozhiwei 2023-05-27 16:53:09 +08:00
parent ff41657bdf
commit 1a93316b38
4 changed files with 16 additions and 3 deletions

View File

@ -4,6 +4,8 @@
#include <f8/comgr.h>
#include <f8/coroutine.h>
#ifdef USE_BOOST
namespace f8
{
@ -36,3 +38,5 @@ namespace f8
}
}
#endif

View File

@ -2,6 +2,8 @@
#include <a8/singleton.h>
#ifdef USE_BOOST
namespace f8
{
class Coroutine;
@ -28,3 +30,5 @@ namespace f8
};
}
#endif

View File

@ -7,6 +7,8 @@
#include <f8/comgr.h>
#include <f8/timer.h>
#ifdef USE_BOOST
class TimerPromise : public a8::Promise
{
public:
@ -56,9 +58,6 @@ namespace f8
Coroutine::~Coroutine()
{
#ifdef DEBUG
a8::XPrintf("Coroutine::~Coroutine()\n", {});
#endif
Deatch();
list_del_init(&co_entry_);
}
@ -132,3 +131,5 @@ namespace f8
}
}
#endif

View File

@ -2,6 +2,8 @@
#include <a8/awaiter.h>
#ifdef USE_BOOST
#include <boost/coroutine2/all.hpp>
namespace f8
@ -42,3 +44,5 @@ namespace f8
};
}
#endif