MCPcopy Create free account
hub / github.com/KDE/kdevelop / enqueue

Method enqueue

plugins/debuggercommon/mi/micommandqueue.cpp:18–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16CommandQueue::~CommandQueue() = default;
17
18void CommandQueue::enqueue(std::unique_ptr<MICommand> command)
19{
20 ++m_tokenCounter;
21 if (m_tokenCounter == 0)
22 m_tokenCounter = 1;
23 command->setToken(m_tokenCounter);
24
25 // take the time when this command was added to the command queue
26 command->markAsEnqueued();
27
28 if (command->flags() & (CmdImmediately | CmdInterrupt))
29 ++m_immediatelyCounter;
30
31 m_commandList.push_back(std::move(command));
32
33 rationalizeQueue(m_commandList.back().get());
34 dumpQueue();
35}
36
37void CommandQueue::dumpQueue() const
38{

Callers 6

addSubDirMethod · 0.80
queueCmdMethod · 0.80
testDestructorMethod · 0.80
addAndTakeMethod · 0.80
clearQueueMethod · 0.80

Calls 6

setTokenMethod · 0.80
markAsEnqueuedMethod · 0.80
flagsMethod · 0.45
push_backMethod · 0.45
getMethod · 0.45
backMethod · 0.45

Tested by 3

testDestructorMethod · 0.64
addAndTakeMethod · 0.64
clearQueueMethod · 0.64