aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chdynamic.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-07-19 12:22:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-07-19 12:22:31 +0000
commit84e044f176cee7c6946b24c36c90f63534b5b369 (patch)
treee8ca42b24b64273a7d1d6aa35f7aae07b1d6d39a /os/kernel/src/chdynamic.c
parent4245ba7659ecdaadd47b0cdd61f3255b83f87d4f (diff)
downloadChibiOS-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/src/chdynamic.c')
-rw-r--r--os/kernel/src/chdynamic.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/os/kernel/src/chdynamic.c b/os/kernel/src/chdynamic.c
index 632367ca1..3d856a526 100644
--- a/os/kernel/src/chdynamic.c
+++ b/os/kernel/src/chdynamic.c
@@ -42,7 +42,7 @@
*
* @api
*/
-Thread *chThdAddRef(Thread *tp) {
+thread_t *chThdAddRef(thread_t *tp) {
chSysLock();
chDbgAssert(tp->p_refs < 255, "chThdAddRef(), #1", "too many references");
@@ -64,7 +64,7 @@ Thread *chThdAddRef(Thread *tp) {
*
* @api
*/
-void chThdRelease(Thread *tp) {
+void chThdRelease(thread_t *tp) {
trefs_t refs;
chSysLock();
@@ -114,16 +114,16 @@ void chThdRelease(Thread *tp) {
* @param[in] pf the thread function
* @param[in] arg an argument passed to the thread function. It can be
* @p NULL.
- * @return The pointer to the @p Thread structure allocated for
+ * @return The pointer to the @p thread_t structure allocated for
* the thread into the working space area.
* @retval NULL if the memory cannot be allocated.
*
* @api
*/
-Thread *chThdCreateFromHeap(MemoryHeap *heapp, size_t size,
- tprio_t prio, tfunc_t pf, void *arg) {
+thread_t *chThdCreateFromHeap(MemoryHeap *heapp, size_t size,
+ tprio_t prio, tfunc_t pf, void *arg) {
void *wsp;
- Thread *tp;
+ thread_t *tp;
wsp = chHeapAlloc(heapp, size);
if (wsp == NULL)
@@ -131,9 +131,9 @@ Thread *chThdCreateFromHeap(MemoryHeap *heapp, size_t size,
#if CH_DBG_FILL_THREADS
_thread_memfill((uint8_t *)wsp,
- (uint8_t *)wsp + sizeof(Thread),
+ (uint8_t *)wsp + sizeof(thread_t),
CH_THREAD_FILL_VALUE);
- _thread_memfill((uint8_t *)wsp + sizeof(Thread),
+ _thread_memfill((uint8_t *)wsp + sizeof(thread_t),
(uint8_t *)wsp + size,
CH_STACK_FILL_VALUE);
#endif
@@ -163,16 +163,16 @@ Thread *chThdCreateFromHeap(MemoryHeap *heapp, size_t size,
* @param[in] pf the thread function
* @param[in] arg an argument passed to the thread function. It can be
* @p NULL.
- * @return The pointer to the @p Thread structure allocated for
+ * @return The pointer to the @p thread_t structure allocated for
* the thread into the working space area.
* @retval NULL if the memory pool is empty.
*
* @api
*/
-Thread *chThdCreateFromMemoryPool(MemoryPool *mp, tprio_t prio,
- tfunc_t pf, void *arg) {
+thread_t *chThdCreateFromMemoryPool(MemoryPool *mp, tprio_t prio,
+ tfunc_t pf, void *arg) {
void *wsp;
- Thread *tp;
+ thread_t *tp;
chDbgCheck(mp != NULL, "chThdCreateFromMemoryPool");
@@ -182,9 +182,9 @@ Thread *chThdCreateFromMemoryPool(MemoryPool *mp, tprio_t prio,
#if CH_DBG_FILL_THREADS
_thread_memfill((uint8_t *)wsp,
- (uint8_t *)wsp + sizeof(Thread),
+ (uint8_t *)wsp + sizeof(thread_t),
CH_THREAD_FILL_VALUE);
- _thread_memfill((uint8_t *)wsp + sizeof(Thread),
+ _thread_memfill((uint8_t *)wsp + sizeof(thread_t),
(uint8_t *)wsp + mp->mp_object_size,
CH_STACK_FILL_VALUE);
#endif