1 
2 #include "config.h"
3 #include "mypaint-config.h"
4 
5 #ifdef _OPENMP
6 #include <omp.h>
7 #endif
8 
9 void
ensure_max_threads_not_exceeded(void)10 ensure_max_threads_not_exceeded(void)
11 {
12 #ifdef _OPENMP
13     const int max_threads = omp_get_max_threads();
14     if (max_threads > MYPAINT_MAX_THREADS) {
15         omp_set_num_threads(MYPAINT_MAX_THREADS);
16     }
17 #endif
18 }
19 
20 void
mypaint_init(void)21 mypaint_init(void)
22 {
23     ensure_max_threads_not_exceeded();
24     //bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
25 }
26 
27