diff options
| author | Bernard Xiong <[email protected]> | 2013-06-24 17:06:09 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-06-24 17:06:09 +0800 |
| commit | 79392bb0827bfb0323320f8f8ae346c06b88df7b (patch) | |
| tree | 579db3e4d98e70e98ca9466c433948d3f0953470 /src/thread.c | |
| parent | b23dd15990c913898b88d235c08e8630952d00cd (diff) | |
Embedded GPLv2 license.
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/thread.c b/src/thread.c index 5ab9e1b0c1..da77ace289 100644 --- a/src/thread.c +++ b/src/thread.c @@ -3,9 +3,19 @@ * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rt-thread.org/license/LICENSE + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Change Logs: * Date Author Notes @@ -555,7 +565,7 @@ rt_err_t rt_thread_suspend(rt_thread_t thread) { RT_DEBUG_LOG(RT_DEBUG_THREAD, ("thread suspend: thread disorder, %d\n", thread->stat)); - + return -RT_ERROR; } |
