GOG GALAXY SDK Documentation
IGalaxyThreadFactory Class Referenceabstract

Custom thread spawner for the Galaxy SDK. More...

#include <GalaxyThread.h>

Public Member Functions

virtual IGalaxyThreadSpawnThread (ThreadEntryFunction const entryPoint, ThreadEntryParam param)=0
 Spawn new internal Galaxy SDK thread. More...
 

Detailed Description

Custom thread spawner for the Galaxy SDK.

Member Function Documentation

◆ SpawnThread()

virtual IGalaxyThread* SpawnThread ( ThreadEntryFunction const  entryPoint,
ThreadEntryParam  param 
)
pure virtual

Spawn new internal Galaxy SDK thread.

A new thread shall start from the provided ThreadEntryFunction accepting provided ThreadEntryParam.

Note
The very same allocator shall be used for thread objects allocations as specified in the InitOptions::galaxyAllocator.
Parameters
[in]entryPointThe wrapper for the entry point function.
[in]paramThe parameter for the thread entry point.
Returns
New thread object.