X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_lcore.h;fp=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_lcore.h;h=f7f67868c5a32d3e168e9377808a2889cec5d7fc;hp=11f481c52589ff5f57c6d75d793c7c62c0aa33a7;hb=2a2b8cd7d11765c01db3a0242c5274207fbb457f;hpb=339341e8e126a34381861b7347a8ad4ffb9cb293 diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h index 11f481c525..f7f67868c5 100644 --- a/lib/librte_eal/common/include/rte_lcore.h +++ b/lib/librte_eal/common/include/rte_lcore.h @@ -265,10 +265,12 @@ int rte_thread_setname(pthread_t id, const char *name); /** * Create a control thread. * - * Wrapper to pthread_create(). + * Wrapper to pthread_create() and pthread_setname_np(). * * @param thread * Filled with the thread id of the new created thread. + * @param name + * The name of the control thread (max 16 characters including '\0'). * @param attr * Attributes for the new thread. * @param start_routine @@ -279,7 +281,8 @@ int rte_thread_setname(pthread_t id, const char *name); * On success, returns 0; on error, it returns a negative value * corresponding to the error number. */ -int rte_ctrl_thread_create(pthread_t *thread, const pthread_attr_t *attr, +int rte_ctrl_thread_create(pthread_t *thread, const char *name, + const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg); /**