X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fbsdapp%2Feal%2Feal_thread.c;fp=lib%2Flibrte_eal%2Fbsdapp%2Feal%2Feal_thread.c;h=1b8cd8a65794dc7ddbc38493d9a11b8f657a2ba7;hb=3901ed99c2f82d3e979bb1bea001d61898241829;hp=9a0343738471b40eaf96eb6db788e6fd7313e77c;hpb=92fed91965785beccad406ee6982567be4444ffb;p=dpdk.git diff --git a/lib/librte_eal/bsdapp/eal/eal_thread.c b/lib/librte_eal/bsdapp/eal/eal_thread.c index 9a03437384..1b8cd8a657 100644 --- a/lib/librte_eal/bsdapp/eal/eal_thread.c +++ b/lib/librte_eal/bsdapp/eal/eal_thread.c @@ -199,3 +199,10 @@ int rte_sys_gettid(void) thr_self(&lwpid); return (int)lwpid; } + +int rte_thread_setname(pthread_t id, const char *name) +{ + /* this BSD function returns no error */ + pthread_set_name_np(id, name); + return 0; +}