https://github.com/git/git
Raw File
Tip revision: c42c0f12972194564f039dcf580d89ca14ae72d6 authored by Junio C Hamano on 17 March 2020, 20:23:48 UTC
Git 2.17.4
Tip revision: c42c0f1
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