/*---------------------------------------------------------------------------* Project: Horizon File: util_LockFreeQueue.h Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 12449 $ *---------------------------------------------------------------------------*/ #ifndef NN_UTIL_UTIL_LOCKFREEQUEUE_H_ #define NN_UTIL_UTIL_LOCKFREEQUEUE_H_ #include #if defined(NN_PROCESSOR_ARM_V4) || defined(NN_PROCESSOR_ARM_V5) #include namespace nn { namespace util { namespace detail { using nn::util::ARMv4::detail::LockFreeQueueNode; using nn::util::ARMv4::detail::LockFreeQueueImpl; } } } #elif defined(NN_PROCESSOR_ARM_V6) #include namespace nn { namespace util { namespace detail { using nn::util::ARMv6::detail::LockFreeQueueNode; using nn::util::ARMv6::detail::LockFreeQueueImpl; } } } #else #error processor not selected #endif namespace nn { namespace util { // TODO: 適切なアロケータを用いた、 // void Enqueue(T x); // bool Dequeue(T& x); // タイプのユーザ用インターフェイスラッパーをいつか作る。 }} #endif /* NN_KERNEL_KERN_KLINKEDLIST_H_ */