diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-29 14:13:52 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-29 14:13:52 +0000 |
commit | 737aa2d9dd365f9a88803a40a6098ec93df2d42a (patch) | |
tree | eebb39bbe970a1ac119ea6959cd6265c97c3ba97 /os | |
parent | 84f2c0ef3247a667d699e27bd49b2b237db5fc7b (diff) | |
download | ChibiOS-737aa2d9dd365f9a88803a40a6098ec93df2d42a.tar.gz ChibiOS-737aa2d9dd365f9a88803a40a6098ec93df2d42a.tar.bz2 ChibiOS-737aa2d9dd365f9a88803a40a6098ec93df2d42a.zip |
Thread names to lwIP related threads.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3999 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/various/lwip_bindings/arch/sys_arch.c | 3 | ||||
-rw-r--r-- | os/various/lwip_bindings/lwipthread.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/os/various/lwip_bindings/arch/sys_arch.c b/os/various/lwip_bindings/arch/sys_arch.c index 3042f5e8b..9a1ceffd8 100644 --- a/os/various/lwip_bindings/arch/sys_arch.c +++ b/os/various/lwip_bindings/arch/sys_arch.c @@ -193,7 +193,8 @@ void sys_mbox_set_invalid(sys_mbox_t *mbox) { sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread,
void *arg, int stacksize, int prio) {
- (void)name;
+
+ chRegSetThreadName(name);
size_t wsz = THD_WA_SIZE(stacksize);
void *wsp = chCoreAlloc(wsz);
if (wsp == NULL)
diff --git a/os/various/lwip_bindings/lwipthread.c b/os/various/lwip_bindings/lwipthread.c index 061a4a52e..31d9caad4 100644 --- a/os/various/lwip_bindings/lwipthread.c +++ b/os/various/lwip_bindings/lwipthread.c @@ -224,6 +224,8 @@ msg_t lwip_thread(void *p) { static struct netif thisif;
static const MACConfig mac_config = {thisif.hwaddr};
+ chRegSetThreadName("lwipthread");
+
/* Initializes the thing.*/
sys_init();
mem_init();
|