MCPcopy Create free account
hub / github.com/NetSys/bess / KickThread

Method KickThread

core/utils/syscallthread.cc:127–129  ·  view source on GitHub ↗

* Send the "please exit" signal that interrupts a system call * to the indicated thread. In other words, give it a kick to * get it out of system calls. */

Source from the content-addressed store, hash-verified

125 * get it out of system calls.
126 */
127void SyscallThread::KickThread() {
128 pthread_kill(thread_.native_handle(), SIG_THREAD_EXIT);
129}
130
131// Get the signal mask for a pselect() or ppoll() system call.
132const sigset_t *SyscallThreadPfuncs::Sigmask() const {

Callers 1

KnockerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected