ezEngine Release 26.3
Loading...
Searching...
No Matches
ezThreadEvent Struct Reference

Event data for thread lifecycle notifications. More...

#include <Thread.h>

Public Types

enum class  Type {
  ThreadCreated , ThreadDestroyed , StartingExecution , FinishedExecution ,
  ClearThreadLocals
}
 

Public Attributes

Type m_Type
 
ezThreadm_pThread = nullptr
 

Detailed Description

Event data for thread lifecycle notifications.

Member Enumeration Documentation

◆ Type

enum class ezThreadEvent::Type
strong
Enumerator
ThreadCreated 

Called on the thread that creates the ezThread instance (not the ezThread itself).

ThreadDestroyed 

Called on the thread that destroys the ezThread instance (not the ezThread itself).

StartingExecution 

Called on the ezThread before the Run() method is executed.

FinishedExecution 

Called on the ezThread after the Run() method was executed.

ClearThreadLocals 

Potentially called on the ezThread (currently only for task system threads) at a time when plugins should clean up thread-local storage.


The documentation for this struct was generated from the following file: