<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div style="">
<blockquote dir="auto">
<p>Just to be sure, you mean that two threads sending at the same time is not supported, not sending & receiving from 2 different threads.</p>
</blockquote>
<p dir="auto">right</p>
<blockquote dir="auto">
<p>In which case that should work for us, the creation of receiver/sender threads should act as the required memory barrier (since we spawn the threads after the <code>gnutls_handshake</code> call returns); at least as far as the <code>recv_state</code> variable is concerned; but then I'm not sure this would work for <code>initial_negotiation_completed</code> since it would be modified by the thread completing the handshake at a later time right?</p>
</blockquote>
<p dir="auto">yes.</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/935#note_144842518">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/e471dd94fb37f222f462746cde93ff4c/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/935#note_144842518"}}</script>
</p>
</div>
</body>
</html>