Thread names to lwIP related threads.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3999 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
84f2c0ef32
commit
737aa2d9dd
|
@ -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,
|
sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread,
|
||||||
void *arg, int stacksize, int prio) {
|
void *arg, int stacksize, int prio) {
|
||||||
(void)name;
|
|
||||||
|
chRegSetThreadName(name);
|
||||||
size_t wsz = THD_WA_SIZE(stacksize);
|
size_t wsz = THD_WA_SIZE(stacksize);
|
||||||
void *wsp = chCoreAlloc(wsz);
|
void *wsp = chCoreAlloc(wsz);
|
||||||
if (wsp == NULL)
|
if (wsp == NULL)
|
||||||
|
|
|
@ -224,6 +224,8 @@ msg_t lwip_thread(void *p) {
|
||||||
static struct netif thisif;
|
static struct netif thisif;
|
||||||
static const MACConfig mac_config = {thisif.hwaddr};
|
static const MACConfig mac_config = {thisif.hwaddr};
|
||||||
|
|
||||||
|
chRegSetThreadName("lwipthread");
|
||||||
|
|
||||||
/* Initializes the thing.*/
|
/* Initializes the thing.*/
|
||||||
sys_init();
|
sys_init();
|
||||||
mem_init();
|
mem_init();
|
||||||
|
|
Loading…
Reference in New Issue