Atomic.h

Go to the documentation of this file.
00001 /*
00002  *    Copyright 2004-2006 Intel Corporation
00003  * 
00004  *    Licensed under the Apache License, Version 2.0 (the "License");
00005  *    you may not use this file except in compliance with the License.
00006  *    You may obtain a copy of the License at
00007  * 
00008  *        http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  *    Unless required by applicable law or agreed to in writing, software
00011  *    distributed under the License is distributed on an "AS IS" BASIS,
00012  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *    See the License for the specific language governing permissions and
00014  *    limitations under the License.
00015  */
00016 
00017 
00018 #ifndef _OASYS_ATOMIC_H_
00019 #define _OASYS_ATOMIC_H_
00020 
00038 #include "config.h"
00039 
00040 #ifdef OASYS_ATOMIC_NONATOMIC
00041 #include "Atomic-fake.h"
00042 #elif defined(OASYS_ATOMIC_MUTEX)
00043 #include "Atomic-mutex.h"
00044 #else
00045 
00046 #if (defined(__i386__) || defined(__amd64__)) && defined(__GNUC__)
00047 #include "Atomic-x86.h"
00048 #elif defined(__POWERPC__) || defined(PPC)
00049 #include "Atomic-ppc.h"
00050 #elif defined(__arm__)
00051 #include "Atomic-arm.h"
00052 #elif defined(__mips__)
00053 #include "Atomic-mips.h"
00054 #elif defined(__win32__)
00055 #include "Atomic-win32.h"
00056 #else
00057 #error "No Atomic.h variant found for this architecture... \
00058         implement one or configure with --disable-atomic-asm"
00059 #endif
00060 #endif /* !OASYS_ATOMIC_NONATOMIC && !OASYS_ATOMIC_MUTEX */
00061 
00062 #endif /* _OASYS_ATOMIC_H_ */

Generated on Thu Jun 7 12:54:25 2007 for DTN Reference Implementation by  doxygen 1.5.1