1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_util_concurrent_ConcurrentLinkedQueue__
|
5 |
|
|
#define __java_util_concurrent_ConcurrentLinkedQueue__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/util/AbstractQueue.h>
|
10 |
|
|
|
11 |
|
|
class java::util::concurrent::ConcurrentLinkedQueue : public ::java::util::AbstractQueue
|
12 |
|
|
{
|
13 |
|
|
|
14 |
|
|
jboolean casTail(::java::util::concurrent::ConcurrentLinkedQueue$Node *, ::java::util::concurrent::ConcurrentLinkedQueue$Node *);
|
15 |
|
|
jboolean casHead(::java::util::concurrent::ConcurrentLinkedQueue$Node *, ::java::util::concurrent::ConcurrentLinkedQueue$Node *);
|
16 |
|
|
public:
|
17 |
|
|
ConcurrentLinkedQueue();
|
18 |
|
|
ConcurrentLinkedQueue(::java::util::Collection *);
|
19 |
|
|
virtual jboolean add(::java::lang::Object *);
|
20 |
|
|
virtual jboolean offer(::java::lang::Object *);
|
21 |
|
|
virtual ::java::lang::Object * poll();
|
22 |
|
|
virtual ::java::lang::Object * peek();
|
23 |
|
|
public: // actually package-private
|
24 |
|
|
virtual ::java::util::concurrent::ConcurrentLinkedQueue$Node * first();
|
25 |
|
|
public:
|
26 |
|
|
virtual jboolean isEmpty();
|
27 |
|
|
virtual jint size();
|
28 |
|
|
virtual jboolean contains(::java::lang::Object *);
|
29 |
|
|
virtual jboolean remove(::java::lang::Object *);
|
30 |
|
|
virtual ::java::util::Iterator * iterator();
|
31 |
|
|
private:
|
32 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
33 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
34 |
|
|
static const jlong serialVersionUID = 196745693267521676LL;
|
35 |
|
|
static ::java::util::concurrent::atomic::AtomicReferenceFieldUpdater * tailUpdater;
|
36 |
|
|
static ::java::util::concurrent::atomic::AtomicReferenceFieldUpdater * headUpdater;
|
37 |
|
|
::java::util::concurrent::ConcurrentLinkedQueue$Node * volatile __attribute__((aligned(__alignof__( ::java::util::AbstractQueue)))) head;
|
38 |
|
|
::java::util::concurrent::ConcurrentLinkedQueue$Node * volatile tail;
|
39 |
|
|
public:
|
40 |
|
|
static ::java::lang::Class class$;
|
41 |
|
|
};
|
42 |
|
|
|
43 |
|
|
#endif // __java_util_concurrent_ConcurrentLinkedQueue__
|