When multiple calls attempt to modify from different threads the inner structure inside the HTTPDataLoader where the running tasks are maintained, the result is a crash, usually as EXC_BAD_ACCESS.
This PR fixes the bug by adding exclusive access to write the data at the beginning and when a request completes.
When multiple calls attempt to modify from different threads the inner structure inside the
HTTPDataLoader
 where the running tasks are maintained, the result is a crash, usually as EXC_BAD_ACCESS.This PR fixes the bug by adding exclusive access to write the data at the beginning and when a request completes.