https://github.com/git/git
Raw File
Tip revision: f02fbc4f9433937ee0463d0342d6d7d97e1f6f1e authored by Junio C Hamano on 26 February 2016, 21:45:26 UTC
Git 2.8-rc0
Tip revision: f02fbc4
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