author | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Dec 2010 18:32:12 +0000 (10:32 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Dec 2010 20:58:06 +0000 (12:58 -0800) | ||
commit | b361888dd5a26c4f1eb6268392e89e2d546accf6 | |
tree | d2c62bda2a95eaea7871c0c645f54d8d45734915 | tree | snapshot |
parent | e4117b1fe8fa17f54ea30997255299ba5650f445 | commit | diff |
thread-utils.h: simplify the inclusion
All files that include this header file use the same four line
incantation:
#ifndef NO_PTHREADS
#include <pthread.h>
#include "thread-utils.h"
#endif
Move the responsibility for that gymnastics to the header file from the
files that include it. This approach makes it easier to later declare new
services that are related to threading in thread-utils.h and have them
available to all the threading code.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
All files that include this header file use the same four line
incantation:
#ifndef NO_PTHREADS
#include <pthread.h>
#include "thread-utils.h"
#endif
Move the responsibility for that gymnastics to the header file from the
files that include it. This approach makes it easier to later declare new
services that are related to threading in thread-utils.h and have them
available to all the threading code.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c | diff | blob | history | |
builtin/pack-objects.c | diff | blob | history | |
thread-utils.h | diff | blob | history | |
transport-helper.c | diff | blob | history |