mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: pthread_attr_[g|s]etaffinity_np
Date: Wed, 3 Jan 2018 14:10:17 -0500	[thread overview]
Message-ID: <20180103191017.GP1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <20180103160822.7a48bcdc@inria.fr>

On Wed, Jan 03, 2018 at 04:08:22PM +0100, Jens Gustedt wrote:
> Hello, again,
> when trying to link against OpenMP (gomp to be more precise) I ran
> into undefined-symbol errors for these functions. For the moment I am
> avoiding this problem by adding some weak aliases that do nothing and
> return ENOSYS.
> 
> I have not yet looked into the details, but I can't imagine that it
> would be too difficult to implement them in musl. What would be the
> general feeling about including such NP function in one form or
> another in musl?

It's intentional that the attr versions of these functions were
omitted because they require unbounded storage (and thus allocation)
in attr objects and the same result can be achieved just as well if
not better by pthread_setaffinity_np directly on the thread.

Rich


      parent reply	other threads:[~2018-01-03 19:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-03 15:08 pthread_attr_[g|s]etaffinity_np Jens Gustedt
2018-01-03 17:41 ` pthread_attr_[g|s]etaffinity_np Szabolcs Nagy
2018-01-03 19:51   ` pthread_attr_[g|s]etaffinity_np Jens Gustedt
2018-01-03 19:10 ` Rich Felker [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=20180103191017.GP1627@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).