All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jussi Viiri <ilmai@iki.fi>
Cc: xenomai@lists.linux.dev
Subject: Re: [PATCH] revl: Add sched() to thread::Builder
Date: Mon, 26 Sep 2022 09:46:00 +0200	[thread overview]
Message-ID: <87czbishhj.fsf@xenomai.org> (raw)
In-Reply-To: <46bb98c5-43a3-f952-8251-13196dcdcf1f@iki.fi>


Jussi Viiri <ilmai@iki.fi> writes:

> When spawning threads with Builder, it wasn't possible to set the scheduling policy of the spawned thread as you don't have access to the Thread object after spawning. Added that option to Builder.

Thread::attach() returns Result<Self, Error>, so you could still invoke
Thread::attach().unwrap().set_sched(...) afterwards, I believe.

-- 
Philippe.

      parent reply	other threads:[~2022-09-26  7:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gTXdwUk_bKng2MQYwbdY-wCvewR2NZOyi9XxSpkGlR0GL4SerQi2RIneMs5e421_D69U1vjgdpCUDWfmQW56Bw==@protonmail.internalid>
2022-09-21 18:39 ` [PATCH] revl: Add sched() to thread::Builder Jussi Viiri
2022-09-21 20:23   ` Jussi Viiri
2022-09-26  7:13   ` Philippe Gerum
2022-09-26  7:46   ` Philippe Gerum [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=87czbishhj.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=ilmai@iki.fi \
    --cc=xenomai@lists.linux.dev \
    /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.