Revision 2a26377047ff75a3b9b5ca3156d9fd912eb4f737 authored by Peter Krefting on 14 January 2015, 21:55:49 UTC, committed by Peter Krefting on 14 January 2015, 21:55:49 UTC
Signed-off-by: Peter Krefting <peter@softwolves.pp.se>
1 parent 9905988
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