Turi Create  4.0
query_engine_lock.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 TURI_SFRAME_QUERY_ENGINE_HPP
7 #define TURI_SFRAME_QUERY_ENGINE_HPP
8 #include <thread>
9 namespace turi {
10 class recursive_mutex;
11 
12 /**
13  * SFrame Lazy Evaluation and Execution
14  */
15 namespace query_eval {
16 
17 /**
18  * \ingroup sframe_query_engine
19  * A global lock around all external entry points to the query execution.
20  * For now,
21  * - materialize()
22  * - infer_planner_node_type()
23  * - infer_planner_node_length()
24  */
25 extern recursive_mutex global_query_lock;
26 } // query_eval
27 } // turicreate
28 #endif
recursive_mutex global_query_lock