Client, Inotify: use std::list instead of std::deque

Random access is not necessary here.
This commit is contained in:
Max Kellermann 2013-01-04 14:44:06 +01:00
parent 9a71845700
commit 15a4246ead
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@
#include <set>
#include <string>
#include <deque>
#include <list>
#include <glib.h>
@ -97,7 +97,7 @@ public:
/**
* A list of messages this client has received.
*/
std::deque<ClientMessage> messages;
std::list<ClientMessage> messages;
Client(struct player_control *player_control,
int fd, int uid, int num);

View File

@ -21,7 +21,7 @@
#include "InotifyQueue.hxx"
#include "UpdateGlue.hxx"
#include <deque>
#include <list>
#include <string>
#include <glib.h>
@ -40,7 +40,7 @@ enum {
INOTIFY_UPDATE_DELAY_S = 5,
};
static std::deque<std::string> inotify_queue;
static std::list<std::string> inotify_queue;
static guint queue_source_id;
void