MCPcopy Create free account
hub / github.com/Genivia/ugrep / cancel_ugrep

Method cancel_ugrep

src/ugrep.cpp:9215–9221  ·  view source on GitHub ↗

cancel the search

Source from the content-addressed store, hash-verified

9213
9214// cancel the search
9215void Static::cancel_ugrep()
9216{
9217 std::unique_lock<std::mutex> lock(Static::grep_handle_mutex);
9218 if (Static::grep_handle != NULL)
9219 Static::grep_handle->cancel();
9220 lock.unlock();
9221}
9222
9223// search the specified files or standard input for pattern matches
9224void Grep::ugrep()

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected