Client, Inotify: use std::list instead of std::deque
Random access is not necessary here.
This commit is contained in:
parent
9a71845700
commit
15a4246ead
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <deque>
|
#include <list>
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* A list of messages this client has received.
|
* A list of messages this client has received.
|
||||||
*/
|
*/
|
||||||
std::deque<ClientMessage> messages;
|
std::list<ClientMessage> messages;
|
||||||
|
|
||||||
Client(struct player_control *player_control,
|
Client(struct player_control *player_control,
|
||||||
int fd, int uid, int num);
|
int fd, int uid, int num);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include "InotifyQueue.hxx"
|
#include "InotifyQueue.hxx"
|
||||||
#include "UpdateGlue.hxx"
|
#include "UpdateGlue.hxx"
|
||||||
|
|
||||||
#include <deque>
|
#include <list>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
@ -40,7 +40,7 @@ enum {
|
|||||||
INOTIFY_UPDATE_DELAY_S = 5,
|
INOTIFY_UPDATE_DELAY_S = 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
static std::deque<std::string> inotify_queue;
|
static std::list<std::string> inotify_queue;
|
||||||
static guint queue_source_id;
|
static guint queue_source_id;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user