Threadsafe BFL

Is BFL threadsafe ? In the sense that it simultanously can be called from
different threads with a different baysian filter in each thread.

src/wrappers/rng.cpp uses for both a boost implementation and a LTI
implementation of the random number generators a static variable.
Does this not give problems ?

Erwin.
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Threadsafe BFL

On 5/10/07, Erwin Aertbelien <Erwin [dot] Aertbelien [..] ...> wrote:
> Is BFL threadsafe ? In the sense that it simultanously can be called from
> different threads with a different baysian filter in each thread.
> src/wrappers/rng.cpp uses for both a boost implementation and a LTI
> implementation of the random number generators a static variable.
> Does this not give problems ?

That's the answer to your question, right?

>From the top of my head, that's the only place where static variables
are used in BFL, so KFs might be threadsafe f.i. _provided that_ the
used wrapped libraries are threadsafe.
I don't think somebody ever did a thorough review though.

Concerning the rng wrappers, currently this is a C-code 5 minute
implementation which should be _completely_ rewritten (this used to be
in my BFL "roadmap document" :-). C++-ify the code (making it
threadsafe along the way) and providing support for changing the seed
are 2 things that jump to my mind.

regards,

Klaas
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl