Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
threading.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Author: Liam White
4 * Copyright (C) 2024 Authors
5 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
6 */
7
8#ifndef INKSCAPE_DISPLAY_THREADING_H
9#define INKSCAPE_DISPLAY_THREADING_H
10
11#include <memory>
12
13namespace Inkscape {
14
15class dispatch_pool;
16
17// Atomic accessor to global variable governing number of dispatch_pool threads.
18void set_num_dispatch_threads(int num_dispatch_threads);
19
20std::shared_ptr<dispatch_pool> get_global_dispatch_pool();
21
22} // namespace Inkscape
23
24#endif // INKSCAPE_DISPLAY_THREADING_H
25
26/*
27 Local Variables:
28 mode:c++
29 c-file-style:"stroustrup"
30 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
31 indent-tabs-mode:nil
32 fill-column:99
33 End:
34*/
35// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Helper class to stream background task notifications as a series of messages.
std::shared_ptr< dispatch_pool > get_global_dispatch_pool()
Definition threading.cpp:31
void set_num_dispatch_threads(int num_dispatch_threads)
Definition threading.cpp:26