[rtems commit] posix: Delete unused _POSIX_Threads_Get()

Sebastian Huber sebh at rtems.org
Thu Dec 18 09:50:02 UTC 2014


Module:    rtems
Branch:    master
Commit:    8ce00eaf48bfb3b2a1da8875550662945db0f5f0
Changeset: http://git.rtems.org/rtems/commit/?id=8ce00eaf48bfb3b2a1da8875550662945db0f5f0

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Dec 18 10:48:35 2014 +0100

posix: Delete unused _POSIX_Threads_Get()

Close #1759.

---

 cpukit/posix/include/rtems/posix/pthreadimpl.h | 34 --------------------------
 1 file changed, 34 deletions(-)

diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h
index bf2d68e..d0dc330 100644
--- a/cpukit/posix/include/rtems/posix/pthreadimpl.h
+++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h
@@ -97,27 +97,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free(
 );
 
 /**
- * @brief Map POSIX thread IDs to control blocks.
- *
- * This function maps pthread IDs to pthread control blocks.
- * If ID corresponds to a local pthread, then it returns
- * the_pthread control pointer which maps to ID and location
- * is set to OBJECTS_LOCAL.  if the pthread ID is global and
- * resides on a remote node, then location is set to OBJECTS_REMOTE,
- * and the_pthread is undefined.  Otherwise, location is set
- * to OBJECTS_ERROR and the_pthread is undefined.
- *
- * @param[in] id is the id to lookup
- * @param[in] location points to the returned location value
- *
- * @return This methods returns a pointer to the corresponding Thread_Control.
- */
-RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get(
-  pthread_t          id,
-  Objects_Locations *location
-);
-
-/**
  * @brief POSIX threads initialize user threads body.
  *
  * This routine initializes the thread attributes structure.
@@ -225,19 +204,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
 }
 
 /*
- *  _POSIX_Threads_Get
- */
-
-RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get (
-  pthread_t          id,
-  Objects_Locations *location
-)
-{
-  return (Thread_Control *)
-    _Objects_Get( &_POSIX_Threads_Information, (Objects_Id)id, location );
-}
-
-/*
  * _POSIX_Threads_Initialize_attributes
  */
 




More information about the vc mailing list