https://github.com/git/git
Raw File
Tip revision: ac84098b7e32406a982ac01cc76a663d5605224b authored by Junio C Hamano on 28 October 2016, 16:02:44 UTC
Git 2.10.2
Tip revision: ac84098
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