All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Achilles Benetopoulos <abenetopoulos@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Make qemu_thread_create return a flag to indicate if it succeeded
Date: Thu, 16 Mar 2017 17:04:26 +0000	[thread overview]
Message-ID: <87ziglnof9.fsf@linaro.org> (raw)
In-Reply-To: <8fb8ed45-6de3-2b74-f5ea-44b374cabcbd@gmail.com>


Achilles Benetopoulos <abenetopoulos@gmail.com> writes:

> I am interested in working on the BiteSized Task mentioned in the
> subject line. However, I have a question: Since the current behaviour
> of qemu_thread_create is to fail in the case of an error, then it
> seems logical to make the caller exit (in the patched version) if the
> return value of the call to qemu_thread_create indicates an error. Is
> this desirable? If so, how detailed should the error messages reported
> be? If not, then I'm guessing that the desired behaviour is a more
> graceful handling of the error on a case-by-case basis?

It will depend on a case-by-case basis. For example failing to create
threads for a TCG vCPU don't really leave much for you to do expect
complain loudly and exit. I assume the more graceful handling is for
things like thread-pools where you can continue to run even without a
fully populated pool.

--
Alex Bennée

  reply	other threads:[~2017-03-16 17:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-16 16:55 [Qemu-devel] Make qemu_thread_create return a flag to indicate if it succeeded Achilles Benetopoulos
2017-03-16 17:04 ` Alex Bennée [this message]
2017-03-16 19:02   ` Dr. David Alan Gilbert
2017-03-16 17:05 ` Daniel P. Berrange

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=87ziglnof9.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=abenetopoulos@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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.