aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-05-06 19:31:56 +0700
committerJunio C Hamano <gitster@pobox.com>2012-05-07 15:48:19 -0700
commitb038a61020573b1be6e5fc5b2be4485b63a9cbf1 (patch)
treeaa912176a94ea77819264969f30f905e98d1b1d6 /compat
parentb8a2486f1524947f232f657e9f2ebf44e3e7a243 (diff)
downloadgit-b038a61020573b1be6e5fc5b2be4485b63a9cbf1.tar.gz
git-b038a61020573b1be6e5fc5b2be4485b63a9cbf1.tar.xz
index-pack: disable threading if NO_PREAD is defined
NO_PREAD simulates pread() as a sequence of seek, read, seek in compat/pread.c. The simulation is not thread-safe because another thread could move the file offset away in the middle of pread operation. Do not allow threading in that case. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions