X-Git-Url: https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=blobdiff_plain;f=examples%2Fperformance-thread%2Fcommon%2Flthread.c;fp=examples%2Fperformance-thread%2Fcommon%2Flthread.c;h=77c870fccee2387d8fdcbdd60e561a831d080e27;hp=062275a439b11a209a1dce9c159d6a7dfe96a63d;hb=43192222b329b3c984687235b0081c7fbfe484ba;hpb=18af4227fa5eee002b1a79207935620f6112803e diff --git a/examples/performance-thread/common/lthread.c b/examples/performance-thread/common/lthread.c index 062275a4..77c870fc 100644 --- a/examples/performance-thread/common/lthread.c +++ b/examples/performance-thread/common/lthread.c @@ -327,13 +327,14 @@ struct lthread *lthread_current(void) /* * Tasklet to cancel a thread */ -static void +static void * _cancel(void *arg) { struct lthread *lt = (struct lthread *) arg; lt->state |= BIT(ST_LT_CANCELLED); lthread_detach(); + return NULL; }