Ring buffer: Use as backing for std::queue uses

This commit is contained in:
Jonathan G Rennison
2023-08-19 15:28:45 +01:00
parent 2296b92ea2
commit e912cfc19d
7 changed files with 34 additions and 8 deletions

View File

@@ -10,13 +10,13 @@
#include "../../stdafx.h"
#include "script_event_types.hpp"
#include <queue>
#include "../../core/ring_buffer_queue.hpp"
#include "../../safeguards.h"
/** The queue of events for a script. */
struct ScriptEventData {
std::queue<ScriptEvent *> stack; ///< The actual queue.
ring_buffer_queue<ScriptEvent *> stack; ///< The actual queue.
};
/* static */ void ScriptEventController::CreateEventPointer()