Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «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 method will be invoked when created thread is started.

Returns:
a new thread.

public: virtual api::Thread& getCurrentThread();

Returns currently executing thread.

Returns:
executing thread.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

public: static bool isObject(const Type* obj);

Tests if given object has been constructed object.

public: virtual api::Toggle& toggle();

Returns the toggle interface for controlling global thread switching.

Returns:
toggle interface.

public: virtual void yield();

Yields to next thread.

Back to class list