https://github.com/git/git
Raw File
Tip revision: ffa952497288d29d94b16675c6789ef83850def3 authored by Junio C Hamano on 15 February 2018, 23:21:23 UTC
Git 2.16.2
Tip revision: ffa9524
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