https://github.com/git/git
Raw File
Tip revision: 1f6b1afea00cdbc99114b88768aa5e617ff479df authored by Junio C Hamano on 20 March 2017, 20:17:08 UTC
Git 2.12.1
Tip revision: 1f6b1af
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