Haka: src/haka/thread.h Source File

Haka

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

thread.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef THREAD_H
6 #define THREAD_H
7
8 #include <haka/packet_module.h>
9
10
11 struct thread_pool;
12
13 struct thread_pool *thread_pool_create(int count, struct packet_module *packet_module,
14 bool attach_debugger, bool dissector_graph);
15 int thread_pool_count(struct thread_pool *pool);
16 void thread_pool_cleanup(struct thread_pool *pool);
17 void thread_pool_wait(struct thread_pool *pool);
18 void thread_pool_cancel(struct thread_pool *pool);
19 void thread_pool_start(struct thread_pool *pool);
20 bool thread_pool_stop(struct thread_pool *pool, int force);
21 void thread_pool_attachdebugger(struct thread_pool *pool);
22 bool thread_pool_issingle(struct thread_pool *pool);
23 struct engine_thread *thread_pool_thread(struct thread_pool *pool, int index);
24
25 #endif /* THREAD_H */
26
packet_module
Definition: packet_module.h:33
packet_module.h