1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     util_LockFreeQueue.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 12449 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_UTIL_UTIL_LOCKFREEQUEUE_H_
17 #define NN_UTIL_UTIL_LOCKFREEQUEUE_H_
18 
19 #include <nn/util/util_Noncopyable.h>
20 
21 #if     defined(NN_PROCESSOR_ARM_V4) || defined(NN_PROCESSOR_ARM_V5)
22     #include <nn/util/util_ARMv4/LockFreeQueueImpl.h>
23     namespace nn {
24         namespace util {
25             namespace detail {
26                 using nn::util::ARMv4::detail::LockFreeQueueNode;
27                 using nn::util::ARMv4::detail::LockFreeQueueImpl;
28             }
29         }
30     }
31 #elif   defined(NN_PROCESSOR_ARM_V6)
32     #include <nn/util/util_ARMv6/LockFreeQueueImpl.h>
33     namespace nn {
34         namespace util {
35             namespace detail {
36                 using nn::util::ARMv6::detail::LockFreeQueueNode;
37                 using nn::util::ARMv6::detail::LockFreeQueueImpl;
38             }
39         }
40     }
41 #else
42     #error processor not selected
43 #endif
44 
45 
46 
47 namespace nn { namespace util {
48 
49 // TODO: 適切なアロケータを用いた、
50 //   void Enqueue(T x);
51 //   bool Dequeue(T& x);
52 // タイプのユーザ用インターフェイスラッパーをいつか作る。
53 
54 }}
55 
56 #endif /* NN_KERNEL_KERN_KLINKEDLIST_H_ */
57