mhoopmann / mstoolkit

Automatically exported from code.google.com/p/mstoolkit
27 stars 10 forks source link

make mstoolkit (more) thread safe #25

Open rickhelmus opened 1 month ago

rickhelmus commented 1 month ago

Hello,

I was hoping to use mstoolkit in a multi-threaded (with a private MSReader object per thread), but ran into issues. So far, I noticed the following needs to be changed:

So far, I quickly patched the above changes, and things seem OK. But at the moment I am also only using just the mzML part of the library. If more issues will arise, I will update this issue again.

Thanks, Rick

edit1: I made the issue more generic for threading after noticing more issues.

mhoopmann commented 1 month ago

Hi Rick, Yes, I should make MSToolkit more thread safe. I can implement changes where you suggest and look for others as well. Cheers, Mike