public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Tannenbaum, Barry M" <barry.m.tannenbaum@intel.com>
To: Thomas Schwinge <thomas@codesourcery.com>,
	"Iyer, Balaji V"	<balaji.v.iyer@intel.com>,
	"Zamyatin, Igor" <igor.zamyatin@intel.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: RE: libcilkrts: Remove unused function __cilkrts_sysdep_is_worker_thread_id (was: Cilk Library)
Date: Mon, 29 Sep 2014 18:26:00 -0000	[thread overview]
Message-ID: <6B86B7F2A4026246AA81BA1ABF9756905C50D864@fmsmsx107.amr.corp.intel.com> (raw)
In-Reply-To: <8738bae1mp.fsf@kepler.schwinge.homeip.net>

It's a remnant from something we were attempting to support (and abandoned) 4 years ago. I'm fine with removing it from the runtime.

Igor, I'll make the change and send you a new copy.

   - Barry

-----Original Message-----
From: Thomas Schwinge [mailto:thomas@codesourcery.com] 
Sent: Monday, September 29, 2014 2:13 PM
To: Iyer, Balaji V; Tannenbaum, Barry M; Zamyatin, Igor
Cc: gcc-patches@gcc.gnu.org
Subject: libcilkrts: Remove unused function __cilkrts_sysdep_is_worker_thread_id (was: Cilk Library)

Hi!

On Wed, 9 Oct 2013 18:32:11 +0000, "Iyer, Balaji V" <balaji.v.iyer@intel.com> wrote:
> [libcilkrts]

I have found a function that is -- as far as I can tell -- unused, and I'm thus proposing to remove it.  This increases portability, as this code has dependencies on the operating system.  Tested on x86 GNU/Hurd, and x86_64 GNU/Linux is in progress.  OK for trunk once testing completed?

commit 4f32339be3c95330b7fcd3bc6bb520a7401aa510
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Sat Sep 20 19:53:56 2014 +0200

    libcilkrts: Remove unused function __cilkrts_sysdep_is_worker_thread_id.
    
    	libcilkrts/
    	* runtime/sysdep-unix.c (__cilkrts_sysdep_is_worker_thread_id):
    	Remove function.
---
 libcilkrts/runtime/sysdep-unix.c | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git libcilkrts/runtime/sysdep-unix.c libcilkrts/runtime/sysdep-unix.c index 1f82b62..b9f1ad0 100644
--- libcilkrts/runtime/sysdep-unix.c
+++ libcilkrts/runtime/sysdep-unix.c
@@ -571,28 +571,6 @@ void __cilkrts_make_unrunnable_sysdep(__cilkrts_worker *w,
     }
 }
 
-/*
- * __cilkrts_sysdep_is_worker_thread_id
- *
- * Returns true if the thread ID specified matches the thread ID we saved
- * for a worker.
- */
-
-int __cilkrts_sysdep_is_worker_thread_id(global_state_t *g,
-                                         int i,
-                                         void *thread_id)
-{
-#if defined( __linux__) || defined(__VXWORKS__)
-    pthread_t tid = *(pthread_t *)thread_id;
-    if (i < 0 || i > g->total_workers)
-        return 0;
-    return g->sysdep->threads[i] == tid;
-#else
-    // Needs to be implemented
-    return 0;
-#endif
-}
-
 
 
 


Grüße,
 Thomas

  reply	other threads:[~2014-09-29 18:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BF230D13CA30DD48930C31D4099330003A47B9F3@FMSMSX101.amr.corp.intel.com>
     [not found] ` <525460A9.2040409@redhat.com>
     [not found]   ` <BF230D13CA30DD48930C31D4099330003A48660C@FMSMSX101.amr.corp.intel.com>
2013-11-07 13:36     ` Cilk Library Thomas Schwinge
2013-11-07 17:32       ` Jeff Law
2013-11-07 23:35       ` Iyer, Balaji V
2013-11-08  9:03         ` Thomas Schwinge
2014-09-29 18:13     ` libcilkrts: Remove unused function __cilkrts_sysdep_is_worker_thread_id (was: Cilk Library) Thomas Schwinge
2014-09-29 18:26       ` Tannenbaum, Barry M [this message]
2014-09-29 21:00       ` libcilkrts: Remove unused function __cilkrts_sysdep_is_worker_thread_id Jeff Law
2014-09-29 21:06         ` Thomas Schwinge
2014-09-29 18:13     ` libcilkrts: Use AC_USE_SYSTEM_EXTENSIONS (was: Cilk Library) Thomas Schwinge
2014-10-01 14:02       ` Thomas Schwinge
2014-10-01 14:10         ` Tannenbaum, Barry M
2014-09-29 18:14     ` libcilkrts: GNU Hurd port, and some code cleanup/consolidation " Thomas Schwinge
2014-09-29 18:14     ` libcilkrts: GNU toolchain, GNU linker scripts " Thomas Schwinge

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=6B86B7F2A4026246AA81BA1ABF9756905C50D864@fmsmsx107.amr.corp.intel.com \
    --to=barry.m.tannenbaum@intel.com \
    --cc=balaji.v.iyer@intel.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=igor.zamyatin@intel.com \
    --cc=thomas@codesourcery.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).