PLCnext API Documentation 25.0.2.69
ThreadState.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10namespace Arp { namespace System { namespace Commons { namespace Threading
11{
12
14enum class ThreadState
15{
17 Running = 0,
19 Stopped,
29 Exited
30};
31
33// global stream operators of enum ThreadState for logging and parsing
34ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, ThreadState value);
35ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, ThreadState& value);
36
37}}}} // end of namespace Arp::System::Commons::Threading
38
40// template specialization of ThreadState formatter
41template<> struct fmt::formatter<Arp::System::Commons::Threading::ThreadState>: public fmt::ostream_formatter {};
@ Interrupted
A blocking operation was interrupted.
ThreadState
Possible thread states.
Definition: ThreadState.hpp:15
@ Canceled
summary>Thread::Terminate was called
@ WaitSleepJoin
summary>Thread::Interrupt was invoked
@ Stopped
summary>Thread is either waiting for an event, currently sleeping or waits for another thread to fini...
@ Terminated
summary>Threaded method has exited execution
Root namespace for the PLCnext API