aboutsummaryrefslogtreecommitdiffstats
path: root/examples/performance-thread/common/lthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/performance-thread/common/lthread.c')
-rw-r--r--examples/performance-thread/common/lthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/performance-thread/common/lthread.c b/examples/performance-thread/common/lthread.c
index 7d76c8c4..0b60a42a 100644
--- a/examples/performance-thread/common/lthread.c
+++ b/examples/performance-thread/common/lthread.c
@@ -320,13 +320,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;
}