LeechCraft 0.6.70-19214-g121e5318a7
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
corocontext.h File Reference
#include <coroutine>
#include <list>
#include <stdexcept>
#include <vector>
#include <QStringList>
#include "../threadsconfig.h"
Include dependency graph for corocontext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LC::Util::ContextDeadException
class  LC::Util::CoroContext
struct  LC::Util::CoroContext::Coro
struct  LC::Util::CoroContext::Registration

Namespaces

namespace  LC
namespace  LC::Util
namespace  LC::Util::detail

Macros

#define LC_CORO_CONTEXT
 Declares the coroutine context of the enclosing QObject-derived class.

Macro Definition Documentation

◆ LC_CORO_CONTEXT

#define LC_CORO_CONTEXT
Value:
private: \
::LC::Util::CoroContext CoroContext_ { *this };

Declares the coroutine context of the enclosing QObject-derived class.

Shall be the last thing in the class definition: the context is then destroyed first, cancelling the coroutines while the other members are still alive.

Definition at line 93 of file corocontext.h.

Referenced by LC::Util::XDG::ItemsFinder::itemsListChanged().