MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / killThreads

Function killThreads

src/debug.cpp:1947–1950  ·  view source on GitHub ↗

Kill the running threads (other than current) in an unclean way. This function * should be used only when it's critical to stop the threads for some reason. * Currently Redis does this only on crash (for instance on SIGSEGV) in order * to perform a fast memory check without other threads messing with memory. */

Source from the content-addressed store, hash-verified

1945 * Currently Redis does this only on crash (for instance on SIGSEGV) in order
1946 * to perform a fast memory check without other threads messing with memory. */
1947void killThreads(void) {
1948 killServerThreads();
1949 bioKillThreads();
1950}
1951
1952void doFastMemoryTest(void) {
1953#if defined(HAVE_PROC_MAPS)

Callers 1

doFastMemoryTestFunction · 0.85

Calls 2

killServerThreadsFunction · 0.85
bioKillThreadsFunction · 0.85

Tested by

no test coverage detected