[sword-devel] thread-safety in libsword?

Teus Benschop teusjannette at gmail.com
Mon Jan 11 05:52:58 MST 2016


Hi,

When accessing libsword simultaneously from multiple threads, it often
crashes. When surrounding the calls to the library with a mutex.lock and a
mutex.unlock at the end, there's no crashes when accessing it in the same
situation. I am seeing this on Linux and on the Mac. Should I do something
in the library, or make a special call, to make it thread-safe? Or is
surrounding the library calls with a mutex the recommended way to handle
this?

Teus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20160111/1c1731c2/attachment.html>


More information about the sword-devel mailing list