diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-19 12:22:31 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-19 12:22:31 +0000 |
commit | 84e044f176cee7c6946b24c36c90f63534b5b369 (patch) | |
tree | e8ca42b24b64273a7d1d6aa35f7aae07b1d6d39a /os/kernel/include/chlists.h | |
parent | 4245ba7659ecdaadd47b0cdd61f3255b83f87d4f (diff) | |
download | ChibiOS-84e044f176cee7c6946b24c36c90f63534b5b369.tar.gz ChibiOS-84e044f176cee7c6946b24c36c90f63534b5b369.tar.bz2 ChibiOS-84e044f176cee7c6946b24c36c90f63534b5b369.zip |
Renamed Thread to thread_t.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@5995 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include/chlists.h')
-rw-r--r-- | os/kernel/include/chlists.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/os/kernel/include/chlists.h b/os/kernel/include/chlists.h index ec5bd4c9c..83552040a 100644 --- a/os/kernel/include/chlists.h +++ b/os/kernel/include/chlists.h @@ -56,7 +56,7 @@ *
* @param[in] name the name of the threads queue variable
*/
-#define _threads_queue_t_DATA(name) {(Thread *)&name, (Thread *)&name}
+#define _threads_queue_t_DATA(name) {(thread_t *)&name, (thread_t *)&name}
/**
* @brief Static threads queue initializer.
@@ -83,7 +83,7 @@ */
static inline void list_init(threads_list_t *tlp) {
- tlp->p_next = (Thread *)tlp;
+ tlp->p_next = (thread_t *)tlp;
}
/**
@@ -91,9 +91,9 @@ static inline void list_init(threads_list_t *tlp) { *
* @notapi
*/
-static inline bool_t list_isempty(threads_list_t *tlp) {
+static inline bool list_isempty(threads_list_t *tlp) {
- return (bool_t)(tlp->p_next == (Thread *)tlp);
+ return (bool)(tlp->p_next == (thread_t *)tlp);
}
/**
@@ -101,9 +101,9 @@ static inline bool_t list_isempty(threads_list_t *tlp) { *
* @notapi
*/
-static inline bool_t list_notempty(threads_list_t *tlp) {
+static inline bool list_notempty(threads_list_t *tlp) {
- return (bool_t)(tlp->p_next != (Thread *)tlp);
+ return (bool)(tlp->p_next != (thread_t *)tlp);
}
/**
@@ -113,7 +113,7 @@ static inline bool_t list_notempty(threads_list_t *tlp) { */
static inline void queue_init(threads_queue_t *tqp) {
- tqp->p_next = tqp->p_prev = (Thread *)tqp;
+ tqp->p_next = tqp->p_prev = (thread_t *)tqp;
}
/**
@@ -121,9 +121,9 @@ static inline void queue_init(threads_queue_t *tqp) { *
* @notapi
*/
-static inline bool_t queue_isempty(threads_queue_t *tqp) {
+static inline bool queue_isempty(threads_queue_t *tqp) {
- return (bool_t)(tqp->p_next == (Thread *)tqp);
+ return (bool)(tqp->p_next == (thread_t *)tqp);
}
/**
@@ -131,60 +131,60 @@ static inline bool_t queue_isempty(threads_queue_t *tqp) { *
* @notapi
*/
-static inline bool_t queue_notempty(threads_queue_t *tqp) {
+static inline bool queue_notempty(threads_queue_t *tqp) {
- return (bool_t)(tqp->p_next != (Thread *)tqp);
+ return (bool)(tqp->p_next != (thread_t *)tqp);
}
/* If the performance code path has been chosen then all the following
functions are inlined into the various kernel modules.*/
#if CH_OPTIMIZE_SPEED
-static inline void list_insert(Thread *tp, threads_list_t *tlp) {
+static inline void list_insert(thread_t *tp, threads_list_t *tlp) {
tp->p_next = tlp->p_next;
tlp->p_next = tp;
}
-static inline Thread *list_remove(threads_list_t *tlp) {
+static inline thread_t *list_remove(threads_list_t *tlp) {
- Thread *tp = tlp->p_next;
+ thread_t *tp = tlp->p_next;
tlp->p_next = tp->p_next;
return tp;
}
-static inline void queue_prio_insert(Thread *tp, threads_queue_t *tqp) {
+static inline void queue_prio_insert(thread_t *tp, threads_queue_t *tqp) {
- Thread *cp = (Thread *)tqp;
+ thread_t *cp = (thread_t *)tqp;
do {
cp = cp->p_next;
- } while ((cp != (Thread *)tqp) && (cp->p_prio >= tp->p_prio));
+ } while ((cp != (thread_t *)tqp) && (cp->p_prio >= tp->p_prio));
tp->p_next = cp;
tp->p_prev = cp->p_prev;
tp->p_prev->p_next = cp->p_prev = tp;
}
-static inline void queue_insert(Thread *tp, threads_queue_t *tqp) {
+static inline void queue_insert(thread_t *tp, threads_queue_t *tqp) {
- tp->p_next = (Thread *)tqp;
+ tp->p_next = (thread_t *)tqp;
tp->p_prev = tqp->p_prev;
tp->p_prev->p_next = tqp->p_prev = tp;
}
-static inline Thread *queue_fifo_remove(threads_queue_t *tqp) {
- Thread *tp = tqp->p_next;
+static inline thread_t *queue_fifo_remove(threads_queue_t *tqp) {
+ thread_t *tp = tqp->p_next;
- (tqp->p_next = tp->p_next)->p_prev = (Thread *)tqp;
+ (tqp->p_next = tp->p_next)->p_prev = (thread_t *)tqp;
return tp;
}
-static inline Thread *queue_lifo_remove(threads_queue_t *tqp) {
- Thread *tp = tqp->p_prev;
+static inline thread_t *queue_lifo_remove(threads_queue_t *tqp) {
+ thread_t *tp = tqp->p_prev;
- (tqp->p_prev = tp->p_prev)->p_next = (Thread *)tqp;
+ (tqp->p_prev = tp->p_prev)->p_next = (thread_t *)tqp;
return tp;
}
-static inline Thread *queue_dequeue(Thread *tp) {
+static inline thread_t *queue_dequeue(thread_t *tp) {
tp->p_prev->p_next = tp->p_next;
tp->p_next->p_prev = tp->p_prev;
|