mschlund / FPsolve

FPsolve: solver for polynomial equations over omega-continuous semirings
BSD 2-Clause "Simplified" License
11 stars 5 forks source link

Make the library thread-safe #15

Open michalt opened 11 years ago

michalt commented 11 years ago

It would be nice if we could have the ability to solve independent equation systems using multiple threads (note this is not about parallelizing the algorithms themselves!). We're currently using some static member variables, etc. which is not safe with multiple threads.

I know that this has pretty low priority ATM, but it's still something that would be nice to have.

michalt commented 11 years ago

Apparently Boost provides thread_specific_ptr [1], which should help with making it possible to solve separate equation systems from multiple threads.

[1] http://www.boost.org/doc/libs/1_53_0/doc/html/thread/thread_local_storage.html