diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-15 20:17:44 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-29 23:40:56 +0000 |
| commit | 972a411ccc1c15ffe52862477653ab877d0afcd6 (patch) | |
| tree | 220e742bd6e28032752762e1be70a2aed90840ef /lib/frr_pthread.c | |
| parent | 62f44022399236ec619a6ebedd3bd6e11765fafd (diff) | |
lib: more `show thread cpu`
Add support for naming pthreads. Also, note that we don't have any
records yet if that's the case.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/frr_pthread.c')
| -rw-r--r-- | lib/frr_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c index 17bc82f5da..614c722be1 100644 --- a/lib/frr_pthread.c +++ b/lib/frr_pthread.c @@ -86,7 +86,7 @@ struct frr_pthread *frr_pthread_new(const char *name, unsigned int id, XCALLOC(MTYPE_FRR_PTHREAD, sizeof(struct frr_pthread)); fpt->id = id; - fpt->master = thread_master_create(); + fpt->master = thread_master_create(name); fpt->start_routine = start_routine; fpt->stop_routine = stop_routine; fpt->name = XSTRDUP(MTYPE_FRR_PTHREAD, name); |
