Mercurial > flash_v2
comparison packages/kernel/current/include/mempoolt.inl @ 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 #ifndef CYGONCE_KERNEL_MEMPOOLT_INL | 1 #ifndef CYGONCE_KERNEL_MEMPOOLT_INL |
| 2 #define CYGONCE_KERNEL_MEMPOOLT_INL | 2 #define CYGONCE_KERNEL_MEMPOOLT_INL |
| 3 | 3 |
| 4 //========================================================================== | 4 //========================================================================== |
| 5 // | 5 // |
| 6 // mempoolt.inl | 6 // mempoolt.inl |
| 7 // | 7 // |
| 8 // Mempoolt (Memory pool template) class declarations | 8 // Mempoolt (Memory pool template) class declarations |
| 9 // | 9 // |
| 10 //========================================================================== | 10 //========================================================================== |
| 11 //####COPYRIGHTBEGIN#### | 11 //####COPYRIGHTBEGIN#### |
| 12 // | 12 // |
| 13 // ------------------------------------------- | 13 // ------------------------------------------- |
| 23 // | 23 // |
| 24 // The Original Code is eCos - Embedded Cygnus Operating System, released | 24 // The Original Code is eCos - Embedded Cygnus Operating System, released |
| 25 // September 30, 1998. | 25 // September 30, 1998. |
| 26 // | 26 // |
| 27 // The Initial Developer of the Original Code is Cygnus. Portions created | 27 // The Initial Developer of the Original Code is Cygnus. Portions created |
| 28 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. | 28 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
| 29 // ------------------------------------------- | 29 // ------------------------------------------- |
| 30 // | 30 // |
| 31 //####COPYRIGHTEND#### | 31 //####COPYRIGHTEND#### |
| 32 //========================================================================== | 32 //========================================================================== |
| 33 //#####DESCRIPTIONBEGIN#### | 33 //#####DESCRIPTIONBEGIN#### |
| 34 // | 34 // |
| 35 // Author(s): hmt | 35 // Author(s): hmt |
| 36 // Contributors: hmt | 36 // Contributors: hmt |
| 37 // Date: 1998-02-10 | 37 // Date: 1998-02-10 |
| 38 // Purpose: Define Mempoolt class interface | 38 // Purpose: Define Mempoolt class interface |
| 39 | 39 |
| 40 // Description: The class defined here provides the APIs for thread-safe, | 40 // Description: The class defined here provides the APIs for thread-safe, |
| 41 // kernel-savvy memory managers; make a class with the | 41 // kernel-savvy memory managers; make a class with the |
| 42 // underlying allocator as the template parameter. | 42 // underlying allocator as the template parameter. |
| 43 // Usage: #include <cyg/kernel/mempoolt.hxx> | 43 // Usage: #include <cyg/kernel/mempoolt.hxx> |
| 44 // | 44 // |
| 45 // | 45 // |
| 46 //####DESCRIPTIONEND#### | 46 //####DESCRIPTIONEND#### |
| 47 // | 47 // |
| 48 //========================================================================== | 48 //========================================================================== |
| 49 | 49 |
| 359 | 359 |
| 360 #ifdef CYGDBG_USE_ASSERTS | 360 #ifdef CYGDBG_USE_ASSERTS |
| 361 | 361 |
| 362 template <class T> | 362 template <class T> |
| 363 inline cyg_bool | 363 inline cyg_bool |
| 364 Cyg_Mempoolt<T>::check_this(cyg_assert_class_zeal zeal) | 364 Cyg_Mempoolt<T>::check_this(cyg_assert_class_zeal zeal) const |
| 365 { | 365 { |
| 366 CYG_REPORT_FUNCTION(); | 366 CYG_REPORT_FUNCTION(); |
| 367 | 367 |
| 368 if ( Cyg_Thread::DESTRUCT == Cyg_Thread::self()->get_wake_reason() ) | 368 if ( Cyg_Thread::DESTRUCT == Cyg_Thread::self()->get_wake_reason() ) |
| 369 // then the whole thing is invalid, and we know it. | 369 // then the whole thing is invalid, and we know it. |
