#include "corocontext.h"
|
| static CoroContext & | Of (QObject &obj) |
| | Returns the context tied to the lifetime of obj.
|
Definition at line 35 of file corocontext.h.
◆ Coros
◆ Registrations
◆ CoroContext() [1/5]
| LC::Util::CoroContext::CoroContext |
( |
| ) |
|
|
default |
◆ CoroContext() [2/5]
| LC::Util::CoroContext::CoroContext |
( |
const QString & | name | ) |
|
|
explicit |
◆ CoroContext() [3/5]
| LC::Util::CoroContext::CoroContext |
( |
const QObject & | obj | ) |
|
|
explicit |
◆ CoroContext() [4/5]
| LC::Util::CoroContext::CoroContext |
( |
const CoroContext & | | ) |
|
|
delete |
◆ CoroContext() [5/5]
◆ ~CoroContext()
| LC::Util::CoroContext::~CoroContext |
( |
| ) |
|
◆ GetName()
| QString LC::Util::CoroContext::GetName |
( |
| ) |
const |
|
inline |
◆ Of()
| CoroContext & LC::Util::CoroContext::Of |
( |
QObject & | obj | ) |
|
|
static |
Returns the context tied to the lifetime of obj.
The same object always yields the same context, which dies when obj gets QObject::destroyed().
This function shall be called from the same thread where obj lives.
- Parameters
-
| [in] | obj | An object to whose lifetime the context is tied. |
- Returns
- The context representing the lifetime of obj.
Definition at line 53 of file corocontext.cpp.
References CoroContext().
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ AddContext
◆ ContextExtensionBase
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.19424.g027e980fd1-build/leechcraft-0.6.70-19424-g027e980fd1/src/util/threads/coro/corocontext.h
- /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.19424.g027e980fd1-build/leechcraft-0.6.70-19424-g027e980fd1/src/util/threads/coro/corocontext.cpp