Re: Creating a "SWORD-over-network" protocol for remote SWORD repo access?

Jaak Ristioja <jaak-89mTbI93R4uuvFJfX82//[email protected]>
Newsgroups gmane.comp.literature.sword.devel
Message-ID <[email protected]>
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

_______________________________________________
sword-devel mailing list: [email protected]
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.