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:
Michael M
2017-08-23 16:45:42 -07:00
parent 4ee85a3e07
commit b58f8d19ab
13 changed files with 35 additions and 35 deletions

View File

@ -9,7 +9,7 @@
#include <wx/frame.h>
#include "Common/CommonTypes.h"
#include "Common/FifoQueue.h"
#include "Common/SPSCQueue.h"
#include "Core/NetPlayClient.h"
#include "Core/NetPlayProto.h"
#include "Core/NetPlayServer.h"
@ -161,7 +161,7 @@ private:
std::string m_desync_player;
std::vector<int> m_playerids;
Common::FifoQueue<std::string> m_chat_msgs;
Common::SPSCQueue<std::string> m_chat_msgs;
const GameListCtrl* const m_game_list;