BlueBrain / MorphIO

A python and C++ library for reading and writing neuronal morphologies
https://morphio.readthedocs.io
Apache License 2.0
27 stars 24 forks source link

Make neurolucida state machine thread-safe #440

Closed NadirRoGue closed 1 year ago

NadirRoGue commented 1 year ago

The lexertl state machine used to parse the ascii morphologies isn't thread safe, as minimalisation of the machine can happen in parallel. I splitted the build from the singleton to make the initialization thread-safe, while keeping the lazy initialization.

mgeplf commented 1 year ago

makes sense, thanks for the change.