summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-06-24 19:21:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-24 19:21:47 (GMT)
commit510ab3f3c19566b43be02ec13c3326fa04a4a677 (patch)
tree22deebaa0dc0fc0229dd82d3fa4307d35ee84ac0 /cache.h
parent5d24b109a64827708cbe98b865aba5d51a2f7c3b (diff)
parent30f8160d26f11156a6792565fe694c813406b929 (diff)
downloadgit-510ab3f3c19566b43be02ec13c3326fa04a4a677.zip
git-510ab3f3c19566b43be02ec13c3326fa04a4a677.tar.gz
git-510ab3f3c19566b43be02ec13c3326fa04a4a677.tar.bz2
Merge branch 'js/sleep-without-select'
Portability fix. * js/sleep-without-select: lockfile: wait using sleep_millisec() instead of select() lockfile: convert retry timeout computations to millisecond help.c: wrap wait-only poll() invocation in sleep_millisec() lockfile: replace random() by rand()
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 571c98f..fe840e3 100644
--- a/cache.h
+++ b/cache.h
@@ -1698,5 +1698,6 @@ int stat_validity_check(struct stat_validity *sv, const char *path);
void stat_validity_update(struct stat_validity *sv, int fd);
int versioncmp(const char *s1, const char *s2);
+void sleep_millisec(int millisec);
#endif /* CACHE_H */