shithub: sox

ref: 8748bd3cde86dda00a454c8bf526f6c83976e6d4
dir: /src/soxomp.h/

View raw version
#include "soxconfig.h"

#ifdef HAVE_OPENMP
  #include <omp.h>
#else

typedef int omp_lock_t;
typedef int omp_nest_lock_t;

#define omp_set_num_threads(int) (void)0
#define omp_get_num_threads() 1
#define omp_get_max_threads() 1
#define omp_get_thread_num() 0
#define omp_get_num_procs() 1
#define omp_in_parallel() 1

#define omp_set_dynamic(int) (void)0
#define omp_get_dynamic() 0

#define omp_set_nested(int) (void)0
#define omp_get_nested() 0

#define omp_init_lock(omp_lock_t) (void)0
#define omp_destroy_lock(omp_lock_t) (void)0
#define omp_set_lock(omp_lock_t) (void)0
#define omp_unset_lock(omp_lock_t) (void)0
#define omp_test_lock(omp_lock_t) 0

#define omp_init_nest_lock(omp_nest_lock_t) (void)0
#define omp_destroy_nest_lock(omp_nest_lock_t) (void)0
#define omp_set_nest_lock(omp_nest_lock_t) (void)0
#define omp_unset_nest_lock(omp_nest_lock_t) (void)0
#define omp_test_nest_lock(omp_nest_lock_t) 0

#define omp_get_wtime() 0
#define omp_get_wtick() 0

#endif