terminate.hpp
Go to the documentation of this file.
1
// Copyright (c) 2006, 2007 Julio M. Merino Vidal
2
// Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
3
// Copyright (c) 2009 Boris Schaeling
4
// Copyright (c) 2010 Felipe Tanus, Boris Schaeling
5
// Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
6
//
7
// Distributed under the Boost Software License, Version 1.0. (See accompanying
8
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
10
/**
11
* \file boost/process/terminate.hpp
12
*
13
* Defines a function to terminate a process.
14
*/
15
16
#pragma once
17
18
#include <
boost/process/config.hpp
>
19
20
#include BOOST_PROCESS_PLATFORM_PROMOTE_PATH(terminate)
21
BOOST_PROCESS_PLATFORM_PROMOTE_NAMESPACE(
terminate
)
22
23
#if defined(BOOST_PROCESS_DOXYGEN)
24
namespace
boost::process
25
{
26
27
/**
28
* Terminates a process.
29
*
30
* \warning Call this function only as a last resort. The process
31
* is terminated immediately and forcefully and has no
32
* chance to close or clean up resources properly.
33
*
34
* \throws boost::system::system_error in case of an error
35
*/
36
template
<
class
Process>
37
void
terminate
(
const
Process& p);
38
39
/**
40
* Terminates a process.
41
*
42
* \warning Call this function only as a last resort. The process
43
* is terminated immediately and forcefully and has no
44
* chance to close or clean up resources properly.
45
*/
46
template
<
class
Process>
47
void
terminate
(
const
Process& p, boost::system::error_code& ec);
48
49
}
50
#endif
51
boost::process
Definition:
mitigate.hpp:25
config.hpp
boost::process::windows::terminate
void terminate(const Process &p, boost::system::error_code &ec)
Definition:
terminate.hpp:30
boost
process
terminate.hpp
Generated on Sat Oct 12 2024 09:14:02 for armarx_documentation by
1.8.17