From: Mytnyk, VolodymyrX Date: Tue, 6 Dec 2016 23:25:45 +0000 (+0000) Subject: ovs_events: fix using of plugin_thread_create () X-Git-Tag: collectd-5.8.0~256^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f5bbbcd3aeb083ac4a185a3969b8cb184b7b0895;p=collectd.git ovs_events: fix using of plugin_thread_create () - the prototype of plugin_thread_create () has been changed in latest master. Change-Id: I492942442717c43cd6e6e73478248164b5083894 Signed-off-by: Mytnyk, VolodymyrX --- diff --git a/src/utils_ovs.c b/src/utils_ovs.c index 2b148490..ff2b151e 100644 --- a/src/utils_ovs.c +++ b/src/utils_ovs.c @@ -918,7 +918,8 @@ static int ovs_db_event_thread_init(ovs_db_t *pdb) { } /* start event thread */ pthread_t tid; - if (plugin_thread_create(&tid, NULL, ovs_event_worker, pdb) != 0) { + if (plugin_thread_create(&tid, NULL, ovs_event_worker, pdb, + "utils_ovs:event") != 0) { pthread_mutex_unlock(&pdb->event_thread.mutex); pthread_mutex_destroy(&pdb->event_thread.mutex); pthread_cond_destroy(&pdb->event_thread.cond); @@ -957,7 +958,8 @@ static int ovs_db_poll_thread_init(ovs_db_t *pdb) { /* start poll thread */ pthread_t tid; pdb->poll_thread.state = OVS_DB_POLL_STATE_RUNNING; - if (plugin_thread_create(&tid, NULL, ovs_poll_worker, pdb) != 0) { + if (plugin_thread_create(&tid, NULL, ovs_poll_worker, pdb, + "utils_ovs:poll") != 0) { pthread_mutex_destroy(&pdb->poll_thread.mutex); return (-1); }