Yahel Zamir wrote:
>
> OK... Since my application does not use PRThread's I guess should
> obtain the PRThread id of the Read thread and the Write thread (using
> PR_GetCurrentThread), and then we can interrupt each thread by calling
> PR_Interrupt. As a result, both blocking calls will return an error,
> and then we can close the socket.

Yes.  Note that you need to wait until the Read thread has returned
from the blocking read call before you can close the socket.  That
may require additional synchronization between the Read thread and
the interrupting thread.

Wan-Teh
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to