[gnutls-help] pthread safety

Wei Cheng chengwei.clx at gmail.com
Sun Jul 23 17:47:28 CEST 2017


i want to use to child pthread to handshake with remote peer.
in my child pthead , i just use gnutls_handshake().

quetion one:
can i use pthread_cancel()  to cancel the child pthread regardless of the
current handshake state ?

question two:
if i have registered the pull/pull_timeout/push funciton with
pthread_cleanup_push/pthread_cleanup_pop,
can i cancel the child process?

thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20170723/5605918e/attachment.html>


More information about the Gnutls-help mailing list