Falcon
Public Member Functions | Static Public Member Functions | List of all members
ThreadPool Class Reference

#include <ThreadPool.h>

Public Member Functions

void execute_task ()
 
template<typename function_type >
void submit (function_type func)
 
template<typename function_type , typename ... Args>
void submit (function_type func, Args ... as)
 

Static Public Member Functions

static ThreadPoolGetThreadPool ()
 
static ThreadPoolGetThreadPool (GLFWwindow *window)
 
static void ShutDown ()
 

Detailed Description

Class Definition for a job system.

Member Function Documentation

◆ execute_task()

void ThreadPool::execute_task ( )

ThreadPool Executer.

◆ GetThreadPool() [1/2]

ThreadPool * ThreadPool::GetThreadPool ( )
static

◆ GetThreadPool() [2/2]

ThreadPool * ThreadPool::GetThreadPool ( GLFWwindow *  window)
static

◆ ShutDown()

void ThreadPool::ShutDown ( )
static

◆ submit() [1/2]

template<typename function_type >
void ThreadPool::submit ( function_type  func)

Direct Method for passing in functions to be executed by the thread pool.

Parameters
[in]Anytype of function pointer(including lambdas).

◆ submit() [2/2]

template<typename function_type , typename ... Args>
void ThreadPool::submit ( function_type  func,
Args ...  as 
)

The documentation for this class was generated from the following files: