https://github.com/git/git
Raw File
Tip revision: 840ed141983718e0c5518a325534a5656797132a authored by Junio C Hamano on 05 May 2017, 04:24:10 UTC
Git 2.10.3
Tip revision: 840ed14
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