From 32dde889e28f1e15c4a97f3e701800ba22ab849d Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 3 Feb 2013 16:43:58 +0000 Subject: Move pthread join and key creation data into the task group git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5602 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/pthread_cancel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nuttx/sched/pthread_cancel.c') diff --git a/nuttx/sched/pthread_cancel.c b/nuttx/sched/pthread_cancel.c index 5e34eeaba..4dd209aeb 100644 --- a/nuttx/sched/pthread_cancel.c +++ b/nuttx/sched/pthread_cancel.c @@ -1,7 +1,7 @@ /************************************************************************** * sched/pthread_cancel.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -93,7 +93,9 @@ int pthread_cancel(pthread_t thread) tcb = sched_gettcb((pid_t)thread); if (!tcb) { - /* The pid does not correspond to any known thread */ + /* The pid does not correspond to any known thread. The thread + * has probably already exited. + */ return ESRCH; } -- cgit v1.2.3