Staging
v0.5.1
Revision a5ab8d03173458b76b8452efd90a7173f490c132 authored by Johannes Schindelin on 04 December 2019, 21:13:04 UTC, committed by Johannes Schindelin on 06 December 2019, 15:27:38 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent bb92255
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