Closed jornb closed 1 year ago
The input arguments were captured by reference, then used in a thread. It could happen that by the time the thread started, the references were invalidated.
Fixed by capturing by value instead.
FYI @erblinium
@benthie New PR for review =)
Thanks for the review. I think this PR can be closed in favor of #103. That PR incorporates changes requested by @benthie.
The input arguments were captured by reference, then used in a thread. It could happen that by the time the thread started, the references were invalidated.
Fixed by capturing by value instead.