Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 1 | /** |
| 2 | * @file IxOsalOsThread.c (eCos) |
| 3 | * |
| 4 | * @brief OS-specific thread implementation. |
| 5 | * |
| 6 | * |
| 7 | * @par |
| 8 | * IXP400 SW Release version 1.5 |
| 9 | * |
| 10 | * -- Copyright Notice -- |
| 11 | * |
| 12 | * @par |
| 13 | * Copyright 2001-2005, Intel Corporation. |
| 14 | * All rights reserved. |
| 15 | * |
| 16 | * @par |
Wolfgang Denk | cb3761e | 2013-07-28 22:12:47 +0200 | [diff] [blame] | 17 | * SPDX-License-Identifier: BSD-3-Clause |
Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 18 | * @par |
| 19 | * -- End of Copyright Notice -- |
| 20 | */ |
| 21 | |
| 22 | #include "IxOsal.h" |
| 23 | |
| 24 | /* Thread attribute is ignored */ |
| 25 | PUBLIC IX_STATUS |
| 26 | ixOsalThreadCreate (IxOsalThread * ptrTid, |
| 27 | IxOsalThreadAttr * threadAttr, IxOsalVoidFnVoidPtr entryPoint, void *arg) |
| 28 | { |
| 29 | return IX_SUCCESS; |
| 30 | } |
| 31 | |
| 32 | /* |
| 33 | * Start thread after given its thread handle |
| 34 | */ |
| 35 | PUBLIC IX_STATUS |
| 36 | ixOsalThreadStart (IxOsalThread * tId) |
| 37 | { |
| 38 | /* Thread already started upon creation */ |
| 39 | return IX_SUCCESS; |
| 40 | } |
| 41 | |
| 42 | /* |
| 43 | * In Linux threadKill does not actually destroy the thread, |
| 44 | * it will stop the signal handling. |
| 45 | */ |
| 46 | PUBLIC IX_STATUS |
| 47 | ixOsalThreadKill (IxOsalThread * tid) |
| 48 | { |
| 49 | return IX_SUCCESS; |
| 50 | } |
| 51 | |
| 52 | PUBLIC void |
| 53 | ixOsalThreadExit (void) |
| 54 | { |
| 55 | } |
| 56 | |
| 57 | PUBLIC IX_STATUS |
| 58 | ixOsalThreadPrioritySet (IxOsalOsThread * tid, UINT32 priority) |
| 59 | { |
| 60 | return IX_SUCCESS; |
| 61 | } |
| 62 | |
| 63 | PUBLIC IX_STATUS |
| 64 | ixOsalThreadSuspend (IxOsalThread * tId) |
| 65 | { |
| 66 | return IX_SUCCESS; |
| 67 | |
| 68 | } |
| 69 | |
| 70 | PUBLIC IX_STATUS |
| 71 | ixOsalThreadResume (IxOsalThread * tId) |
| 72 | { |
| 73 | return IX_SUCCESS; |
| 74 | } |