[bt-devel] problem with the searchdialog solved ?

Martin Gruner bt-devel@crosswire.org
Tue, 10 Apr 2001 21:33:37 +0200


looks good now! Great work!

> VerseKey uses a static  member to cache the locale, and a VerseKey is used
> for the modules which use locales (Bibles and Commentaries).
> But static members are not thread safe, so the first time this static
> member is used in the thread it's empty and the default english booknames
> are used. The next time you search in the module it was changed at the end
> of the last SWModule::Search call and that's why it has a valid key object
> with a valid locale set.

why are static members/variables not thread safe?

Martin