https://github.com/git/git
Raw File
Tip revision: 6b82d3eea625d83af067dc0ed57e361711cfb8b7 authored by Johannes Schindelin on 29 January 2021, 18:13:11 UTC
Git 2.17.6
Tip revision: 6b82d3e
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