Make different threads use different FILE*'s
authorEric Biggers <ebiggers3@gmail.com>
Tue, 13 Nov 2012 00:03:17 +0000 (18:03 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 13 Nov 2012 00:03:17 +0000 (18:03 -0600)
commit051a59e4c6d114fc7abfa14ff78436adab5defb9
treefa34a210dda5b83f50d6b16396e5ed9591570afc
parentb2897d543df1dfbadcbf50d5c013c24866151de7
Make different threads use different FILE*'s

read_wim_resource() was actually not thread safe because it expects to use the
FILE * WIMStruct.fp.  This commit introduces a table of FILE *'s for each
WIMStruct that are only used if a special flag
WIMLIB_RESOURCE_FLAG_MULTITHREADED is passed to read_wim_resource().
src/extract.c
src/mount.c
src/ntfs-apply.c
src/resource.c
src/symlink.c
src/wim.c
src/wimlib_internal.h
tests/test-imagex