Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «eoos::api::Scheduler»

Threads scheduler interface.

public: virtual ~Scheduler();

Destructor.

public: virtual api::Thread* createThread(api::Task& task);

Creates a new thread.

Parameters:
task — An user task which main function will be invoked when created thread is started.

Returns:
A new thread.

public: virtual bool_t isConstructed() const;

Tests if this object has been constructed.

Returns:
True if object has been constructed successfully.

public: virtual 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: virtual void yield();

Yields to next thread.

Back to class list