diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-03 16:43:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-03 16:43:58 +0000 |
commit | 32dde889e28f1e15c4a97f3e701800ba22ab849d (patch) | |
tree | 83fc8fbb0fcef9302298d1ccb819cfba26ec8825 /nuttx/sched/pthread_cancel.c | |
parent | 0066db82f921ad84a9017242396e37259f3d71f4 (diff) | |
download | px4-nuttx-32dde889e28f1e15c4a97f3e701800ba22ab849d.tar.gz px4-nuttx-32dde889e28f1e15c4a97f3e701800ba22ab849d.tar.bz2 px4-nuttx-32dde889e28f1e15c4a97f3e701800ba22ab849d.zip |
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
Diffstat (limited to 'nuttx/sched/pthread_cancel.c')
-rw-r--r-- | nuttx/sched/pthread_cancel.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <gnutt@nuttx.org> * * 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; } |