Mercurial > flash_v2
comparison packages/kernel/current/src/sync/mbox.cxx @ 2:443894e2e912 ecos-v1_2_1-release
Block commit of eCos version 1.2.1
| author | jlarmour |
|---|---|
| date | Tue, 11 May 1999 12:24:34 +0000 |
| parents | 3111d98ba7b3 |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 1:72f549f0d891 | 2:443894e2e912 |
|---|---|
| 1 //========================================================================== | 1 //========================================================================== |
| 2 // | 2 // |
| 3 // mbox.cxx | 3 // mbox.cxx |
| 4 // | 4 // |
| 5 // Mbox mbox template class implementation | 5 // Mbox mbox template class implementation |
| 6 // | 6 // |
| 7 //========================================================================== | 7 //========================================================================== |
| 8 //####COPYRIGHTBEGIN#### | 8 //####COPYRIGHTBEGIN#### |
| 9 // | 9 // |
| 10 // ------------------------------------------- | 10 // ------------------------------------------- |
| 20 // | 20 // |
| 21 // The Original Code is eCos - Embedded Cygnus Operating System, released | 21 // The Original Code is eCos - Embedded Cygnus Operating System, released |
| 22 // September 30, 1998. | 22 // September 30, 1998. |
| 23 // | 23 // |
| 24 // The Initial Developer of the Original Code is Cygnus. Portions created | 24 // The Initial Developer of the Original Code is Cygnus. Portions created |
| 25 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. | 25 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
| 26 // ------------------------------------------- | 26 // ------------------------------------------- |
| 27 // | 27 // |
| 28 //####COPYRIGHTEND#### | 28 //####COPYRIGHTEND#### |
| 29 //========================================================================== | 29 //========================================================================== |
| 30 //#####DESCRIPTIONBEGIN#### | 30 //#####DESCRIPTIONBEGIN#### |
| 31 // | 31 // |
| 32 // Author(s): hmt | 32 // Author(s): hmt |
| 33 // Contributors: hmt | 33 // Contributors: hmt |
| 34 // Date: 1998-02-11 | 34 // Date: 1998-02-11 |
| 35 // Purpose: Mbox implementation | 35 // Purpose: Mbox implementation |
| 36 // Description: This file contains the implementations of the mbox class | 36 // Description: This file contains the implementations of the mbox class |
| 37 // | 37 // |
| 38 //####DESCRIPTIONEND#### | 38 //####DESCRIPTIONEND#### |
| 39 // | 39 // |
| 40 //========================================================================== | 40 //========================================================================== |
| 41 | 41 |
| 84 // ------------------------------------------------------------------------- | 84 // ------------------------------------------------------------------------- |
| 85 // debugging/assert function | 85 // debugging/assert function |
| 86 | 86 |
| 87 #ifdef CYGDBG_USE_ASSERTS | 87 #ifdef CYGDBG_USE_ASSERTS |
| 88 cyg_bool | 88 cyg_bool |
| 89 Cyg_Mbox::check_this(cyg_assert_class_zeal zeal) | 89 Cyg_Mbox::check_this(cyg_assert_class_zeal zeal) const |
| 90 { | 90 { |
| 91 return m.check_this(zeal); | 91 return m.check_this(zeal); |
| 92 } | 92 } |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 122 if ( ! m.tryget( p ) ) | 122 if ( ! m.tryget( p ) ) |
| 123 return NULL; | 123 return NULL; |
| 124 return p; | 124 return p; |
| 125 } | 125 } |
| 126 | 126 |
| 127 #ifdef CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT | 127 #ifdef CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT |
| 128 cyg_bool | 128 cyg_bool |
| 129 Cyg_Mbox::put( void *item ) | 129 Cyg_Mbox::put( void *item ) |
| 130 { | 130 { |
| 131 return m.put( item ); | 131 return m.put( item ); |
| 132 } | 132 } |
