Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Issue 22259005: Use stub where pthread_setaffinity_np() isn't available. define cpu_set_t to cpuset_t on Free/NetB…

Created:
7 years, 4 months ago by wrightg
Modified:
7 years, 4 months ago
Reviewers:
bungeman-skia, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Use stub where pthread_setaffinity_np() isn't available. define cpu_set_t to cpuset_t on Free/NetBSD. Patch originally by Jan Beich

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M src/utils/SkThreadUtils_pthread_linux.cpp View 1 chunk +19 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
wrightg
7 years, 4 months ago (2013-08-06 14:34:20 UTC) #1
reed1
works for me, but want another set of eyes
7 years, 4 months ago (2013-08-06 19:35:26 UTC) #2
bungeman-skia
This file is called _linux for a reason. This code should go in SkThreadUtils_pthread_freebsd.cpp so ...
7 years, 4 months ago (2013-08-06 19:38:31 UTC) #3
bungeman-skia
Just wanted to point out that this is already something of a mess. Skia itself ...
7 years, 4 months ago (2013-08-06 20:44:12 UTC) #4
wrightg
On 2013/08/06 20:44:12, bungeman1 wrote: > Also, we don't currently have a bsd builder of ...
7 years, 4 months ago (2013-08-07 18:48:17 UTC) #5
bungeman-skia
7 years, 4 months ago (2013-08-07 19:29:13 UTC) #6
On 2013/08/07 18:48:17, wrightg wrote:
> On 2013/08/06 20:44:12, bungeman1 wrote:
> > Also, we don't currently have a bsd builder of any sort. As a result it's
> really
> > easy for this sort of thing to break and just get removed later because
we're
> > not testing it. Should we set up a builder for a bsd?
> 
> This patch is actually from our external contributors as we (Mozilla) don't
have
> any BSD builders either. I'm quite happy to disable Skia in Firefox on BSD
> platforms (and thus stop getting/submitting BSD-specific patches) if you don't
> feel that you don't have the resources to prioritise BSD.

I believe that SkThreadUtils is only used by tools, not by anything in core. Is
it possible for you to just not build this file? Is there any reason why the
tools are needed for the general build?

Powered by Google App Engine
This is Rietveld 408576698