Ginger 1.1.5; VERSION ${PROJECT_VERSION}
Loading...
Searching...
No Matches
Classes | Functions
ginger Namespace Reference

Classes

class  Matrix2
 Matrix2. More...
 
class  thread_pool
 
class  Vector2
 Vector2. More...
 
class  Vector2Ref
 Vector2Ref. More...
 

Functions

void log_with_spdlog (const std::string &message)
 Log a message using spdlog.
 
auto get_thread_pool () -> thread_pool &
 Convenience accessor returning a singleton thread pool.
 

Function Documentation

◆ get_thread_pool()

auto ginger::get_thread_pool ( ) -> thread_pool&
inline

Convenience accessor returning a singleton thread pool.

The pool uses hardware concurrency as the number of worker threads. Use this in call sites that do not need to manage pool lifetime.

Returns
Reference to the global thread_pool instance.

◆ log_with_spdlog()

void ginger::log_with_spdlog ( const std::string &  message)

Log a message using spdlog.

This function provides a simple wrapper around spdlog for logging messages. It creates a file logger that writes to "ginger.log" and logs at the info level.

Parameters
messageThe message to log