diff options
Diffstat (limited to 'nuttx/sched/pthread_cancel.c')
-rw-r--r-- | nuttx/sched/pthread_cancel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/sched/pthread_cancel.c b/nuttx/sched/pthread_cancel.c index 2ff1daf87..5e34eeaba 100644 --- a/nuttx/sched/pthread_cancel.c +++ b/nuttx/sched/pthread_cancel.c @@ -2,7 +2,7 @@ * sched/pthread_cancel.c * * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -123,6 +123,7 @@ int pthread_cancel(pthread_t thread) sched_unlock(); return OK; } + sched_unlock(); /* Check to see if the ID refers to ourselves.. this would be the |