Staging
v0.5.1
Revision 6b82d3eea625d83af067dc0ed57e361711cfb8b7 authored by Johannes Schindelin on 29 January 2021, 18:13:11 UTC, committed by Johannes Schindelin on 12 February 2021, 14:47:02 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 22539ec
Raw File
thread-utils.h
#ifndef THREAD_COMPAT_H
#define THREAD_COMPAT_H

#ifndef NO_PTHREADS
#include <pthread.h>

extern int online_cpus(void);
extern int init_recursive_mutex(pthread_mutex_t*);

#else

#define online_cpus() 1

#endif
#endif /* THREAD_COMPAT_H */
back to top