<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 #define SALSA20_IV_SIZE       8<br>
 #define SALSA20_MIN_KEY_SIZE  16<br>
+static int completed;<br>
<br>
 static void *verify_encrypt(void *arg)<br>
 {<br></blockquote></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">But we still need to initialize '0' at the start of thread_B,</div><div class="gmail_default" style="font-size:small">in case of test running with '-i xx' parameter. Isn't it?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"></div><div class="gmail_default" style="font-size:small">   <span class="gmail_default"></span>  tst_atomic_store(0, &completed);</div></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>