summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-15 07:59:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-15 08:05:35 +0200
commitd07f582565df840d2169dcb83a3029e6b90176dc (patch)
tree3abae37bfa912e5ed01643c943a76e5f19bc1896 /cpukit/posix/include
parentposix: sched_get_priority_max() (diff)
downloadrtems-d07f582565df840d2169dcb83a3029e6b90176dc.tar.bz2
posix: Remove superfluous code
Remove double declarations, useless comments and unused functions.
Diffstat (limited to 'cpukit/posix/include')
-rw-r--r--cpukit/posix/include/rtems/posix/pthreadimpl.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h
index 16b0163384..68b605066b 100644
--- a/cpukit/posix/include/rtems/posix/pthreadimpl.h
+++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h
@@ -52,44 +52,6 @@ extern Thread_Information _POSIX_Threads_Information;
extern pthread_attr_t _POSIX_Threads_Default_attributes;
/**
- * @brief Copy POSIX Thread attribute structure.
- *
- * This routine copies the attr2 thread attribute structure
- * to the attr1 Thread Attribute structure.
- *
- * @param[in] dst_attr is a pointer to the thread attribute
- * structure to copy into.
- *
- * @param[out] src_attr is a pointer to the thread attribute
- * structure to copy from.
- */
-RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes(
- pthread_attr_t *dst_attr,
- const pthread_attr_t *src_attr
-);
-
-/**
- * @brief Free POSIX control block.
- *
- * This routine frees a pthread control block to the
- * inactive chain of free pthread control blocks.
- *
- * @param[in] the_pthread is a pointer to the thread to free.
- */
-RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free(
- Thread_Control *the_pthread
-);
-
-/**
- * @brief POSIX threads initialize user threads body.
- *
- * This routine initializes the thread attributes structure.
- */
-RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
- pthread_attr_t *attr
-);
-
-/**
* @brief POSIX threads sporadic budget callout.
*
* This routine handles the sporadic scheduling algorithm.
@@ -155,10 +117,6 @@ RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate(void)
_Objects_Allocate_unprotected( &_POSIX_Threads_Information.Objects );
}
-/*
- * _POSIX_Threads_Copy_attributes
- */
-
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes(
pthread_attr_t *dst_attr,
const pthread_attr_t *src_attr
@@ -173,10 +131,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes(
#endif
}
-/*
- * _POSIX_Threads_Free
- */
-
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
Thread_Control *the_pthread
)
@@ -184,10 +138,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
_Objects_Free( &_POSIX_Threads_Information.Objects, &the_pthread->Object );
}
-/*
- * _POSIX_Threads_Initialize_attributes
- */
-
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
pthread_attr_t *attr
)
@@ -198,17 +148,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
);
}
-/*
- * _POSIX_Threads_Is_null
- */
-
-RTEMS_INLINE_ROUTINE bool _POSIX_Threads_Is_null (
- Thread_Control *the_pthread
-)
-{
- return !the_pthread;
-}
-
/** @} */
#ifdef __cplusplus