All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] crypto/af_alg02: use pthread_tryjoin_np() instead of pthread_kill()
Date: Fri, 16 Jul 2021 16:35:08 +0300	[thread overview]
Message-ID: <f434cb9f-f8bb-d35c-124d-f469f26d8e6b@bell-sw.com> (raw)
In-Reply-To: <CAEemH2c7q8yTC94WvJW61=YtUHBz0_saVM+H=HPysJ0TR-ieVg@mail.gmail.com>

On 16.07.2021 16:21, Li Wang wrote:
> 
>         ?#define SALSA20_IV_SIZE? ? ? ?8
>         ?#define SALSA20_MIN_KEY_SIZE? 16
>         +static int completed;
> 
>         ?static void *verify_encrypt(void *arg)
>         ?{
> 
> 
> But we still need to initialize?'0' at the start of thread_B,
> in case of test?running with '-i xx' parameter. Isn't it?
> 
> ? ???tst_atomic_store(0, &completed);
> 

Yeah, right, and that's another reason to use pthread_tryjoin_np() :)

Because otherwise the thread resources not released... anyway we
could add pthread_join in the end of the run()...


> -- 
> Regards,
> Li Wang


      reply	other threads:[~2021-07-16 13:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-15 10:28 [LTP] [PATCH] crypto/af_alg02: use pthread_tryjoin_np() instead of pthread_kill() Alexey Kodanev
2021-07-16  7:06 ` Li Wang
2021-07-16  9:51   ` Petr Vorel
2021-07-16 12:12     ` Alexey Kodanev
2021-07-16 12:03   ` Alexey Kodanev
2021-07-16 13:12     ` Li Wang
2021-07-16 13:21       ` Li Wang
2021-07-16 13:35         ` Alexey Kodanev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f434cb9f-f8bb-d35c-124d-f469f26d8e6b@bell-sw.com \
    --to=aleksei.kodanev@bell-sw.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.