Staging
v0.5.1
Revision 66d2a6159f511924e7e0b8a21c93538879bfd622 authored by Johannes Schindelin on 04 December 2019, 18:58:46 UTC, committed by Johannes Schindelin on 06 December 2019, 15:26:15 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 2ddcccf
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