1
#pragma once
2

            
3
#include "envoy/thread/thread.h"
4

            
5
namespace Envoy {
6
namespace Thread {
7
/**
8
 * Tries to terminates the process by killing the thread specified by
9
 * the ThreadId. The implementation is platform dependent and currently
10
 * only works on platforms that support SIGABRT.
11
 *
12
 * Returns true if the platform specific function to terminate the thread
13
 * succeeded (i.e. kill() == 0). If the platform is currently unsupported, this
14
 * will return false.
15
 */
16
bool terminateThread(const ThreadId& tid);
17

            
18
} // namespace Thread
19
} // namespace Envoy