PLCnext API Documentation 23.6.0.37
ThreadState.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
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,
23 Interrupted,
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
@ System
System components used by the System, Device, Plc or Io domains.
ThreadState
Possible thread states.
Definition: ThreadState.hpp:15
@ Canceled
summary>Thread::Terminate was called
@ WaitSleepJoin
summary>Thread::Interrupt was invoked
@ Running
summary>Thread is up and running
@ 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