Am Fr., 14. Dez. 2018, 11:26 hat Luca Olivetti <l...@ventoso.org> geschrieben:
> El 13/12/18 a les 20:36, Martin Frb ha escrit: > > > The thread may makes calls (several, one after the other) into a > > library, and each of those calls may not return for some time (to long > > for the main thread to wait, without the app becoming unresponsive). And > > the structure of that library may not be possible to change. > > > > I think that TThread should have a method to kill it for such cases, > using, e.g., pthread_cancel under unix or TerminateThread under windows > (though the latter is not a very good option according to the > documentation). > These functions have the potential to leave locks in a locked state which would lead to deadlocks. Thus ccoperative exits are always preferable. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal