EOOS API 0.12
- eoos::api::Collection<T>
- eoos::api::Guard
- eoos::api::Heap
- eoos::api::IllegalValue<T>
- eoos::api::Iterable<T>
- eoos::api::Iterator<T>
- eoos::api::List<T>
- eoos::api::ListIterator<T>
- eoos::api::Mutex
- eoos::api::MutexManager
- eoos::api::Object
- eoos::api::OutStream<T>
- eoos::api::Queue<T>
- eoos::api::Runnable
- eoos::api::Scheduler
- eoos::api::Semaphore
- eoos::api::SemaphoreManager
- eoos::api::SequenceContainer<T>
- eoos::api::SmartPointer<T>
- eoos::api::StreamManager
- eoos::api::String<T>
- eoos::api::System
- eoos::api::Task
- eoos::api::Thread
- eoos::lib::AbstractBaseString<T,R,A>
- eoos::lib::AbstractBuffer<T,A>
- eoos::lib::AbstractList<T,A>
- eoos::lib::AbstractTask<A>
- eoos::lib::AbstractThreadTask<A>
- eoos::lib::Align<T,S,A>
- eoos::lib::Allocator
- eoos::lib::ArgumentParser<T,L,A>
- eoos::lib::BaseString<T,L,R,A>
- eoos::lib::BaseString<T,0,R,A>
- eoos::lib::Buffer<T,L,A>
- eoos::lib::Buffer<T,0,A>
- eoos::lib::CharTrait<T>
- eoos::lib::CircularList<T,A>
- eoos::lib::Fifo<T,L,A>
- eoos::lib::Guard<A>
- eoos::lib::Heap
- eoos::lib::LinkedList<T,A>
- eoos::lib::LinkedNode<T,A>
- eoos::lib::Memory
- eoos::lib::Mutex<A>
- eoos::lib::NoAllocator
- eoos::lib::NonCopyable<A>
- eoos::lib::Object<A>
- eoos::lib::ObjectAllocator<A>
- eoos::lib::Register<R>
- eoos::lib::ResourceMemory<T,N>
- eoos::lib::ResourceMemory<T,0>
- eoos::lib::Semaphore<A>
- eoos::lib::SharedPointer<T,D,A>
- eoos::lib::SmartPointerDeleter<T>
- eoos::lib::SmartPointerDeleterArray<T>
- eoos::lib::Stream
- eoos::lib::String
- eoos::lib::Thread<A>
- eoos::lib::UniquePointer<T,D,A>
EOOS Automotive R23-03 is released in version v0.11.0
The third official release of EOOS Automotive that is qualified for POSIX and WIN32 compatible operating systems and based on interfaces designed for EOOS RT – real time operating system.
Class «eoos::lib::Thread<A>»
Thread class.
- eoos::lib::Thread<A>
- public eoos::lib::NonCopyable<A>
- public eoos::lib::Object<A>
- public eoos::lib::ObjectAllocator<A>
- public eoos::api::Object
- public eoos::lib::Object<A>
- public eoos::api::Thread
- public eoos::api::Object
- public eoos::lib::NonCopyable<A>
public:
virtual int32_t getPriority() const;
virtual bool_t isConstructed() const;
static bool_t isConstructed(api::Object* obj);
static void operator delete(void* ptr);
static void operator delete(void*, void*);
static void* operator new(size_t size);
static void* operator new(size_t, void* ptr);
Object& operator=(Object const& obj);
Object& operator=(Object&& obj) & noexcept;
virtual bool_t setPriority(int32_t priority);
public: Thread(api::Task& task);
Constructor.
Parameters:
task — A task interface whose start function is invoked when this thread is started.
public: virtual ~Thread();
Destructor.
public: virtual bool_t execute();
Causes this thread to begin execution.
Returns:
True if execution of the thread initiated successfully.
public: virtual int32_t getPriority() const;
Returns this thread priority.
Returns:
Priority value, or PRIORITY_WRONG if an error has been occurred.
public: virtual bool_t isConstructed() const;
Tests if this object has been constructed.
Returns:
True if object has been constructed successfully.
public: static bool_t isConstructed(api::Object* obj);
Tests if an object has been constructed.
Parameters:
obj — Object to be tested.
Returns:
True if object has been constructed successfully.
public: virtual bool_t join();
Waits for this thread to die.
Returns:
True, if this thread is dead.
public: static void operator delete(void* ptr);
Operator delete.
Parameters:
ptr — An address of allocated memory block or a null pointer.
public: static void operator delete(void*, void*);
Operator delete.
public: static void* operator new(size_t size);
Operator new.
Parameters:
size — A number of bytes to allocate.
Returns:
Allocated memory address or a null pointer.
public: static void* operator new(size_t, void* ptr);
Operator new.
Parameters:
ptr — A pointer to reserved memory area.
Returns:
The given pointer.
public: Object& operator=(Object const& obj);
Copy assignment operator.
Parameters:
obj — Reference to a source object.
Returns:
Reference to this object.
public: Object& operator=(Object&& obj) & noexcept;
Move assignment operator.
Parameters:
obj — Right reference to a source object.
Returns:
Reference to this object.
public: virtual bool_t setPriority(int32_t priority);
Sets this thread priority.
Parameters:
priority — Number of priority in range [PRIORITY_MIN, PRIORITY_MAX], or PRIORITY_LOCK.
Returns:
True if priority is set.
public: static bool_t sleep(int32_t ms);
Causes current thread to sleep.
Parameters:
ms — A time to sleep in milliseconds.
Returns:
true if thread slept requested time.
public: static void yield();
Yields to next thread.