https://github.com/git/git
Raw File
Tip revision: 6e3a7b3398559305c7a239a42e447c21a8f39ff8 authored by Junio C Hamano on 03 February 2017, 19:29:52 UTC
Git 2.12-rc0
Tip revision: 6e3a7b3
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