Closed harlanhaskins closed 6 years ago
This fixes the bug I observed with Lite's parallel test runner. TSan runs clean with this fix.
Thanks for the merge! Mind doing another tag on master so I can update https://github.com/silt-lang/Lite's Package.swift
?
Sure, will do 👍
And it's me who should thank you for contributing ;)
Since the FileHandle readabilityHandlers execute asyncronously, possibly on multiple different queues, we need to guard the reads/writes of the outputData/errorData on a serial dispatch queue, and block until all writes have finished.