1
This commit is contained in:
parent
ff41657bdf
commit
1a93316b38
@ -4,6 +4,8 @@
|
|||||||
#include <f8/comgr.h>
|
#include <f8/comgr.h>
|
||||||
#include <f8/coroutine.h>
|
#include <f8/coroutine.h>
|
||||||
|
|
||||||
|
#ifdef USE_BOOST
|
||||||
|
|
||||||
namespace f8
|
namespace f8
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -36,3 +38,5 @@ namespace f8
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include <a8/singleton.h>
|
#include <a8/singleton.h>
|
||||||
|
|
||||||
|
#ifdef USE_BOOST
|
||||||
|
|
||||||
namespace f8
|
namespace f8
|
||||||
{
|
{
|
||||||
class Coroutine;
|
class Coroutine;
|
||||||
@ -28,3 +30,5 @@ namespace f8
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
#include <f8/comgr.h>
|
#include <f8/comgr.h>
|
||||||
#include <f8/timer.h>
|
#include <f8/timer.h>
|
||||||
|
|
||||||
|
#ifdef USE_BOOST
|
||||||
|
|
||||||
class TimerPromise : public a8::Promise
|
class TimerPromise : public a8::Promise
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -56,9 +58,6 @@ namespace f8
|
|||||||
|
|
||||||
Coroutine::~Coroutine()
|
Coroutine::~Coroutine()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
|
||||||
a8::XPrintf("Coroutine::~Coroutine()\n", {});
|
|
||||||
#endif
|
|
||||||
Deatch();
|
Deatch();
|
||||||
list_del_init(&co_entry_);
|
list_del_init(&co_entry_);
|
||||||
}
|
}
|
||||||
@ -132,3 +131,5 @@ namespace f8
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include <a8/awaiter.h>
|
#include <a8/awaiter.h>
|
||||||
|
|
||||||
|
#ifdef USE_BOOST
|
||||||
|
|
||||||
#include <boost/coroutine2/all.hpp>
|
#include <boost/coroutine2/all.hpp>
|
||||||
|
|
||||||
namespace f8
|
namespace f8
|
||||||
@ -42,3 +44,5 @@ namespace f8
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user