Mercurial > flash_v2
comparison packages/kernel/current/include/flag.hxx @ 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_FLAG_HXX | 1 #ifndef CYGONCE_KERNEL_FLAG_HXX |
| 2 #define CYGONCE_KERNEL_FLAG_HXX | 2 #define CYGONCE_KERNEL_FLAG_HXX |
| 3 | 3 |
| 4 //========================================================================== | 4 //========================================================================== |
| 5 // | 5 // |
| 6 // flag.hxx | 6 // flag.hxx |
| 7 // | 7 // |
| 8 // Flag object class declarations | 8 // Flag object 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 Flag class interfaces | 38 // Purpose: Define Flag class interfaces |
| 39 // Description: The classes defined here provide the APIs for flags. | 39 // Description: The classes defined here provide the APIs for flags. |
| 40 // Usage: #include <cyg/kernel/flag.hxx> | 40 // Usage: #include <cyg/kernel/flag.hxx> |
| 41 // | 41 // |
| 42 // | 42 // |
| 43 //####DESCRIPTIONEND#### | 43 //####DESCRIPTIONEND#### |
| 44 // | 44 // |
| 45 //========================================================================== | 45 //========================================================================== |
| 46 | 46 |
| 81 Cyg_FlagValue value; | 81 Cyg_FlagValue value; |
| 82 | 82 |
| 83 class FlagWaitInfo | 83 class FlagWaitInfo |
| 84 { | 84 { |
| 85 public: | 85 public: |
| 86 Cyg_FlagValue allmask; // these are separate words to | 86 Cyg_FlagValue allmask; // these are separate words to |
| 87 Cyg_FlagValue anymask; // save time in wakeup. | 87 Cyg_FlagValue anymask; // save time in wakeup. |
| 88 Cyg_FlagValue value_out; // return the value that satisfied | 88 Cyg_FlagValue value_out; // return the value that satisfied |
| 89 cyg_bool do_clear; | 89 cyg_bool do_clear; |
| 90 | 90 |
| 91 FlagWaitInfo() { value_out = 0; } | 91 FlagWaitInfo() { value_out = 0; } |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 Cyg_ThreadQueue queue; // Queue of waiting threads | 94 Cyg_ThreadQueue queue; // Queue of waiting threads |
