CUBRID Engine  latest
load_worker_manager.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 /*
20  * load_worker_manager.hpp - Thread manager of the loaddb session
21  */
22 
23 #ifndef _LOAD_WORKER_MANAGER_HPP_
24 #define _LOAD_WORKER_MANAGER_HPP_
25 
26 #include "system.h"
27 #include "thread_manager.hpp"
28 #include "thread_worker_pool.hpp"
29 
30 namespace cubload
31 {
32  // forward definitions
33  class session;
34 
37 
40 
41  void worker_manager_get_stats (UINT64 *stats_out);
42 }
43 
44 #endif /* _LOAD_WORKER_MANAGER_HPP_ */
void worker_manager_get_stats(UINT64 *stats_out)
void worker_manager_unregister_session(session &load_session)
void worker_manager_stop_all()
void worker_manager_register_session(session &load_session)
bool worker_manager_try_task(cubthread::entry_task *task)