class TPooledThread

template<class ThreadPolicy>
Inherits: PooledThread

Wrapper around a thread that is used within ThreadPool.

Template parameters

ThreadPolicy

Allows you specify a policy with methods that will get called whenever a new thread is created or when a thread is destroyed.

Public

Methods

OnThreadStarted

void OnThreadStarted(const String &name) override

Called when the thread is first created.

OnThreadEnded

void OnThreadEnded(const String &name) override

Called when the thread is being shut down.