MCPcopy Create free account
hub / github.com/F-Stack/f-stack / killThreads

Function killThreads

app/redis-6.2.6/src/debug.c:1724–1728  ·  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

1722 * Currently Redis does this only on crash (for instance on SIGSEGV) in order
1723 * to perform a fast memory check without other threads messing with memory. */
1724void killThreads(void) {
1725 killMainThread();
1726 bioKillThreads();
1727 killIOThreads();
1728}
1729
1730void doFastMemoryTest(void) {
1731#if defined(HAVE_PROC_MAPS)

Callers 1

doFastMemoryTestFunction · 0.85

Calls 3

killMainThreadFunction · 0.85
bioKillThreadsFunction · 0.85
killIOThreadsFunction · 0.85

Tested by

no test coverage detected