Filosoft / vabamorf

Eesti keele morfanalüsaator
Other
24 stars 14 forks source link

Vabamorf and thread safety #22

Closed tpetmanson closed 8 years ago

tpetmanson commented 8 years ago

I just wanted to ask that is vabamorf thread safe? Or are there any potential gotchas when writing code that uses multithreading?

PRR24 commented 8 years ago

You should use different CLinguistic instances for different threads. One instance should not be called from multiple threads simultaneously. If you are using one instance, synchronize calls to CLinguistic.