Raven Engine v0.1
Loading...
Searching...
No Matches
JobQueue.h File Reference

Thread-safe queue for scheduling and retrieving jobs. More...

#include "Raven/Job/Job.h"
#include <mutex>
#include <optional>
#include <queue>

Classes

class  Raven::JobQueue< T >
 A thread-safe queue for enqueuing and dequeuing jobs. More...

Namespaces

namespace  Raven

Typedefs

using Raven::JobQueueType = JobQueue<Job>
 Alias for a JobQueue containing Raven::Job instances.

Detailed Description

Thread-safe queue for scheduling and retrieving jobs.

A templated thread-safe queue implementation for storing and retrieving jobs (or any other task type). Internally uses a mutex to protect access to the underlying std::queue. Provides a convenient alias JobQueueType for a queue of Raven::Job instances.

See also
Job.h
Author
PhilikusHD