fixed bugs with thread functions not being re-entrant
authorHolger Schemel <info@artsoft.org>
Wed, 23 Jun 2021 11:11:57 +0000 (13:11 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 23 Jun 2021 11:11:57 +0000 (13:11 +0200)
commit892d769ce57c28769dce83cbef5592852458f33d
tree7ceccd1d9628334ea096e6f211ef905bc6e0a904
parente654b56b53a09f9ab45331ef38883f6668f6bd49
fixed bugs with thread functions not being re-entrant

This change fixes potential problems with thread functions being
called several times in parallel (which may happen if the network
operations performed by these functions really take long). In these
cases, the thread's data structure (see previous commit) will not be
used exclusively anymore.

To fix this, the thread's data structure will be allocated separately
for each invocation of the corresponding thread function.
src/files.c