https://github.com/git/git
Revision 01977f46cb48e2894e335667eaabce274174ac5e authored by Junio C Hamano on 13 July 2015, 21:03:44 UTC, committed by Junio C Hamano on 13 July 2015, 21:04:30 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 799767c
Raw File
Tip revision: 01977f46cb48e2894e335667eaabce274174ac5e authored by Junio C Hamano on 13 July 2015, 21:03:44 UTC
Git 2.5.0-rc2
Tip revision: 01977f4
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