Turi Create  4.0
cancel_ops.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef CPPIPC_SERVER_CANCEL_OPS_HPP
7 #define CPPIPC_SERVER_CANCEL_OPS_HPP
8 #include <atomic>
9 #include <iostream>
10 
11 namespace cppipc {
12 
13 std::atomic<unsigned long long>& get_srv_running_command();
14 
15 std::atomic<bool>& get_cancel_bit_checked();
16 
17 bool must_cancel();
18 
19 } // cppipc
20 
21 #endif // CPPIPC_SERVER_CANCEL_OPS_HPP