Files
Sourcetrail/src/lib/data/indexer/IndexerCommandList.h
T
mlangkabel fc92cb1ad9 ui: use wstring in gui relates places
* loading icons
* loading fonts
* context menu action for copy path to clipboard
* context menu action for open containing folder
2018-02-19 12:45:47 +01:00

31 lines
584 B
C++

#ifndef INDEXER_COMMAND_LIST_H
#define INDEXER_COMMAND_LIST_H
#include <memory>
#include <mutex>
#include <deque>
#include "data/indexer/IndexerCommand.h"
class IndexerCommandList
{
public:
void addCommand(std::shared_ptr<IndexerCommand> command);
size_t size() const;
void shuffle();
std::shared_ptr<IndexerCommand> consumeCommand();
std::vector<std::shared_ptr<IndexerCommand>> getAllCommands();
private:
std::deque<std::shared_ptr<IndexerCommand>> m_commands;
std::mutex m_commandsMutex;
std::set<std::wstring> m_commandIndex;
};
#endif // INDEXER_COMMAND_LIST_H