comparison packages/kernel/current/src/sync/flag.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 // flag.cxx 3 // flag.cxx
4 // 4 //
5 // Flag class implementation 5 // Flag 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: Flag implementation 35 // Purpose: Flag implementation
36 // Description: This file contains the implementations of the flag class 36 // Description: This file contains the implementations of the flag class
37 // 37 //
38 //####DESCRIPTIONEND#### 38 //####DESCRIPTIONEND####
39 // 39 //
40 //========================================================================== 40 //==========================================================================
41 41
89 // ------------------------------------------------------------------------- 89 // -------------------------------------------------------------------------
90 // debugging/assert function 90 // debugging/assert function
91 91
92 #ifdef CYGDBG_USE_ASSERTS 92 #ifdef CYGDBG_USE_ASSERTS
93 cyg_bool 93 cyg_bool
94 Cyg_Flag::check_this(cyg_assert_class_zeal zeal) 94 Cyg_Flag::check_this(cyg_assert_class_zeal zeal) const
95 { 95 {
96 CYG_REPORT_FUNCTION(); 96 CYG_REPORT_FUNCTION();
97 97
98 if ( Cyg_Thread::DESTRUCT == Cyg_Thread::self()->get_wake_reason() ) 98 if ( Cyg_Thread::DESTRUCT == Cyg_Thread::self()->get_wake_reason() )
99 // then the whole thing is invalid, and we know it. 99 // then the whole thing is invalid, and we know it.