1 /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3  * This file is part of openfx-supportext <https://github.com/devernay/openfx-supportext>,
4  * Copyright (C) 2013-2018 INRIA
5  *
6  * openfx-supportext is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * openfx-supportext is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with openfx-supportext.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>
18  * ***** END LICENSE BLOCK ***** */
19 
20 /*
21  * A plugin-side multithread suite.
22  * Can be used in place of a faulty or missing host MultiThread Suite
23  */
24 
25 #ifndef openfx_supportext_ofxsThreadSuite_h
26 #define openfx_supportext_ofxsThreadSuite_h
27 
28 extern "C" {
29     struct OfxMultiThreadSuiteV1;
30 }
31 
32 namespace OFX {
33     namespace Private {
34         /** @brief Pointer to the plugin-side threading suite, can be used to replace gThreadSuite */
35         //extern OfxMultiThreadSuiteV1 *gPluginThreadSuite;
36     }
37 
38     // call from PluginFactory::load() to fix the multithread suite on some hosts that do not implement it.
39     // (load() is the second argument of mDeclarePluginFactory() )
40     void ofxsThreadSuiteCheck();
41 }
42 
43 #endif // openfx_supportext_ofxsThreadSuite_h
44