Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::EBusThreadLocalStoragePolicy< Context > Struct Template Reference

#include <Policies.h>

Static Public Member Functions

static Context * Get ()
 
static Context & GetOrCreate ()
 

Detailed Description

template<class Context>
struct AZ::EBusThreadLocalStoragePolicy< Context >

A choice of AZ::EBusTraits::StoragePolicy that specifies that EBus data is stored in a thread_local static variable. With this policy, each thread has its own instance of the EBus.

Template Parameters
ContextA class that contains EBus data.

Member Function Documentation

◆ Get()

template<class Context >
static Context * AZ::EBusThreadLocalStoragePolicy< Context >::Get ( )
inlinestatic

Returns the EBus data.

Returns
A pointer to the EBus data.

◆ GetOrCreate()

template<class Context >
static Context & AZ::EBusThreadLocalStoragePolicy< Context >::GetOrCreate ( )
inlinestatic

Returns the EBus data.

Returns
A reference to the EBus data.

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