https://github.com/git/git
Raw File
Tip revision: 9b185bef0c15cec1ea8753ce091e42ea041f2c31 authored by Junio C Hamano on 28 November 2017, 04:39:14 UTC
Git 2.15.1
Tip revision: 9b185be
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