[sword-devel] Creating a "SWORD-over-network" protocol for remote SWORD repo access?

Jaak Ristioja jaak at ristioja.ee
Mon Aug 5 03:33:20 EDT 2024


On 04.08.24 22:49, Troy A. Griffitts wrote:
> On 8/3/24 12:21 PM, Jaak Ristioja wrote:
>> Libsword does not well lend itself to certain tasks, and some are 
>> impossible. For example, there is still no reliable way for users to 
>> abort module installation/download in a thread-safe manner. Working 
>> around such libsword shortcomings without changing libsword is not 
>> worth the effort.
> 
> Hi Jaak,
> 
> libsword provides for a thread to request termination of a transfer with 
> InstallMgr::terminate():
> 
> https://github.com/bibletime/crosswire-sword-mirror/blob/trunk/include/installmgr.h#L297-L301

Hi Troy,

Yes, but it is still not thread-safe:

 
https://github.com/bibletime/crosswire-sword-mirror/blob/trunk/src/mgr/installmgr.cpp#L276
 
https://github.com/bibletime/crosswire-sword-mirror/blob/trunk/include/remotetrans.h#L100
 
https://github.com/bibletime/crosswire-sword-mirror/blob/trunk/include/remotetrans.h#L62
 
https://github.com/bibletime/crosswire-sword-mirror/blob/trunk/src/mgr/remotetrans.cpp#L210


Best regards,
Jaak Ristioja



More information about the sword-devel mailing list