Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
gts::WorkerPoolVisitor Struct Reference

A visitor object for the worker pool. Allows the user to be notified at particular points during the WorkerPool's lifetime. More...

#include <MicroSchedulerTypes.h>

Public Member Functions

virtual void onThreadStart (OwnedId workerId)
 Called when a Worker thread is created. More...
 
virtual void onThreadExit (OwnedId workerId)
 Called when a Worker thread is destroyed. More...
 

Detailed Description

A visitor object for the worker pool. Allows the user to be notified at particular points during the WorkerPool's lifetime.

Member Function Documentation

◆ onThreadExit()

virtual void gts::WorkerPoolVisitor::onThreadExit ( OwnedId  workerId)
inlinevirtual

Called when a Worker thread is destroyed.

Parameters
workerIdA combination of the local Worker ID and the ID of the WorkerPool that owns it.

◆ onThreadStart()

virtual void gts::WorkerPoolVisitor::onThreadStart ( OwnedId  workerId)
inlinevirtual

Called when a Worker thread is created.

Parameters
workerIdA combination of the local Worker ID and the ID of the WorkerPool that owns it.