aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-24 12:28:07 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-24 12:28:07 +0000
commitc9205e2fd961c60cffd1000936340806a8e45558 (patch)
tree17a2d7da8aa845a1db466985ec5cf53f8bfff389 /src/lib
parentb72177007695129c089c58f65d05ae6178f604a3 (diff)
downloadChibiOS-c9205e2fd961c60cffd1000936340806a8e45558.tar.gz
ChibiOS-c9205e2fd961c60cffd1000936340806a8e45558.tar.bz2
ChibiOS-c9205e2fd961c60cffd1000936340806a8e45558.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@442 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ch.cpp4
-rw-r--r--src/lib/ch.hpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ch.cpp b/src/lib/ch.cpp
index 170a143a7..1d63cefd5 100644
--- a/src/lib/ch.cpp
+++ b/src/lib/ch.cpp
@@ -74,9 +74,9 @@ namespace chibios_rt {
return ((BaseThread *)arg)->Main();
}
- BaseThread::BaseThread(tprio_t prio, tmode_t mode, void *workspace, size_t wsize) {
+ BaseThread::BaseThread(void *workspace, size_t wsize, tprio_t prio) {
- thread_ref = chThdCreate(prio, mode, workspace, wsize, thdstart, this);
+ thread_ref = chThdCreateStatic(workspace, wsize, prio, thdstart, this);
}
void BaseThread::Exit(msg_t msg) {
diff --git a/src/lib/ch.hpp b/src/lib/ch.hpp
index f041365d7..79e40e32b 100644
--- a/src/lib/ch.hpp
+++ b/src/lib/ch.hpp
@@ -101,7 +101,7 @@ namespace chibios_rt {
/**
* Thread constructor.
*/
- BaseThread(tprio_t prio, tmode_t mode, void *workspace, size_t wsize);
+ BaseThread(void *workspace, size_t wsize, tprio_t prio);
/**
* Thread exit.
@@ -196,8 +196,8 @@ namespace chibios_rt {
* Full constructor. It allows to set a priority level for the new thread
* and specify the special option flags.
*/
- EnhancedThread(const char *tname, tprio_t prio, tmode_t mode) :
- BaseThread(prio, mode, wa, sizeof wa) {
+ EnhancedThread(const char *tname, tprio_t prio) :
+ BaseThread(wa, sizeof wa, prio) {
name = tname;
}
@@ -208,7 +208,7 @@ namespace chibios_rt {
* and no special option flags.
*/
EnhancedThread(const char *tname) :
- BaseThread(NORMALPRIO, 0, wa, sizeof wa) {
+ BaseThread(wa, sizeof wa, NORMALPRIO) {
name = tname;
}