Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

include/atomic.h

Go to the documentation of this file.
00001 
00008 /*
00009  *  The contents of this file are subject to the Mozilla Public License
00010  *  Version 1.0 (the "License"); you may not use this file except in
00011  *  compliance with the License. You may obtain a copy of the License
00012  *  at http://www.mozilla.org/MPL/
00013  *
00014  *  Software distributed under the License is distributed on an "AS IS"
00015  *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00016  *  the License for the specific language governing rights and
00017  *  limitations under the License.
00018  *
00019  *  The Original Code is legOS code, released October 17, 1999.
00020  *
00021  *  The Initial Developer of the Original Code is Markus L. Noga.
00022  *  Portions created by Markus L. Noga are Copyright (C) 1999
00023  *  Markus L. Noga. All Rights Reserved.
00024  *
00025  *  Contributor(s): Joseph A. Woolley <jawoolley@users.sourceforge.net
00026  *                  Henner Zeller     <H.Zeller@acm.org>
00027  */
00028 #ifndef __atomic_h__
00029 #define __atomic_h__
00030 
00031 #include <config.h>
00032 
00033 #ifdef CONF_ATOMIC
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif /* __cplusplus */
00038 
00043 typedef volatile unsigned char atomic_t;
00044 
00052 extern void atomic_dec(atomic_t* counter);
00053 
00061 extern void atomic_inc(atomic_t* counter);
00062 
00063 #if defined(__cplusplus)
00064 }
00065 #endif /* __cplusplus */
00066 
00067 #endif /* CONF_ATOMIC */
00068 
00069 #endif /* __critsec_h__ */

brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Mon Feb 16 21:01:52 2004 for brickOS C by doxygen 1.3.5