aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-04-28 20:17:37 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-04-28 20:17:37 +0000
commitf7099a9f93af29bc521c3c45d55fb6fd8496153b (patch)
tree010fa1c6fc37a6035c9edb08823510a0637f0dc4 /os/various
parentdc372ee19f4c62144aa7511b014f0bfe8b6887c5 (diff)
downloadChibiOS-f7099a9f93af29bc521c3c45d55fb6fd8496153b.tar.gz
ChibiOS-f7099a9f93af29bc521c3c45d55fb6fd8496153b.tar.bz2
ChibiOS-f7099a9f93af29bc521c3c45d55fb6fd8496153b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11973 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/various')
-rw-r--r--os/various/cpp_wrappers/ch.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/os/various/cpp_wrappers/ch.hpp b/os/various/cpp_wrappers/ch.hpp
index 4ffa7e537..49d33a4cb 100644
--- a/os/various/cpp_wrappers/ch.hpp
+++ b/os/various/cpp_wrappers/ch.hpp
@@ -2946,7 +2946,7 @@ namespace chibios_rt {
/**
* @brief Template class encapsulating a pool of threads.
*/
- template<size_t S, size_t N>
+ template<size_t S, size_t N, const char *C>
class ThreadsPool : public BaseDynamicThread {
THD_WORKING_AREA(working_areas, S)[N];
MemoryPool threads_pool;
@@ -2975,7 +2975,7 @@ namespace chibios_rt {
void _thd_start(void *arg);
return ThreadReference(chThdCreateFromMemoryPool(&threads_pool.pool,
- "",
+ C,
prio,
_thd_start,
this));
@@ -3017,7 +3017,6 @@ namespace chibios_rt {
Heap(Heap &&) = default;
Heap &operator=(Heap &&) = default;
-
/**
* @brief Allocates an object from a heap.
* @pre The heap must be already been initialized.