API — ICoreEssentials/Concurrency
The public contract of 1 header(s) under src/ICoreEssentials/Concurrency — 1 class/struct definition(s), 2 declaration(s). Each section shows the header's banner and its public (and protected-virtual) surface exactly as the file writes it.
| Header | Defines | Declarations | Bases |
|---|---|---|---|
ICoreThread.h | ICoreThread | 2 | — |
ICoreThread.h#
src/ICoreEssentials/Concurrency/ICoreThread.h
ICoreThread#
ICoreThread.h:75 · class · 2 declaration(s)
ICoreThread -- the answer to "which thread am I on".
class ICoreThread {
public:
ICoreThread() = delete;
// "Is the calling thread the GUI thread?" -- used to decide whether work
// can touch widgets or has to be posted over. Static because the caller
// asking it holds no thread object at all; there is no longer one to hold.
[[nodiscard]] static bool isMainThread() noexcept;
};
};