git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal: fix thread naming on FreeBSD
[dpdk.git]
/
lib
/
librte_eal
/
bsdapp
/
eal
/
eal_thread.c
diff --git
a/lib/librte_eal/bsdapp/eal/eal_thread.c
b/lib/librte_eal/bsdapp/eal/eal_thread.c
index
9a03437
..
1b8cd8a
100644
(file)
--- 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;
+}