MCPcopy Create free account
hub / github.com/Axosoft/nsfw / enqueue

Method enqueue

src/Queue.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void EventQueue::enqueue(
47 const EventType type,
48 const std::string &fromDirectory,
49 const std::string &fromFile,
50 const std::string &toDirectory,
51 const std::string &toFile
52) {
53 if (mPaused) {
54 return;
55 }
56 std::lock_guard<std::mutex> lock(mutex);
57 queue.emplace_back(std::unique_ptr<Event>(new Event(type, fromDirectory, fromFile, toDirectory, toFile)));
58}
59
60void EventQueue::pause() {
61 mPaused = true;

Callers 6

dispatchMethod · 0.80
renameMethod · 0.80
dispatchMethod · 0.80
dispatchRenameMethod · 0.80
createDirectoryMethod · 0.80
handleEventsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected