mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 03:28:43 -06:00
Rename Common::FifoQueue to Common::SPSCQueue
Since all queues are FIFO data structures, the name wasn't informative as to why you'd use it over a normal queue. I originally thought it had something to do with the hardware graphics FIFO. This renames it using the common acronym SPSC, which stands for single-producer single-consumer, and is most commonly used to talk about lock-free data structures, both of which this is.
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
|
||||
#include "Common/Assert.h"
|
||||
#include "Common/ChunkFile.h"
|
||||
#include "Common/FifoQueue.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/SPSCQueue.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
@ -63,7 +63,7 @@ static std::unordered_map<std::string, EventType> s_event_types;
|
||||
static std::vector<Event> s_event_queue;
|
||||
static u64 s_event_fifo_id;
|
||||
static std::mutex s_ts_write_lock;
|
||||
static Common::FifoQueue<Event, false> s_ts_queue;
|
||||
static Common::SPSCQueue<Event, false> s_ts_queue;
|
||||
|
||||
static float s_last_OC_factor;
|
||||
static constexpr int MAX_SLICE_LENGTH = 20000;
|
||||
|
Reference in New Issue
Block a user