Merged gcj-eclipse branch to trunk.
[official-gcc.git] / libjava / java / util / concurrent / FutureTask.h
bloba86215f4387a634d3a23286f60074159c4fae8e2
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_util_concurrent_FutureTask__
5 #define __java_util_concurrent_FutureTask__
7 #pragma interface
9 #include <java/lang/Object.h>
11 class java::util::concurrent::FutureTask : public ::java::lang::Object
14 public:
15 FutureTask(::java::util::concurrent::Callable *);
16 FutureTask(::java::lang::Runnable *, ::java::lang::Object *);
17 virtual jboolean isCancelled();
18 virtual jboolean isDone();
19 virtual jboolean cancel(jboolean);
20 virtual ::java::lang::Object * get();
21 virtual ::java::lang::Object * get(jlong, ::java::util::concurrent::TimeUnit *);
22 public: // actually protected
23 virtual void done();
24 virtual void set(::java::lang::Object *);
25 virtual void setException(::java::lang::Throwable *);
26 public:
27 virtual void run();
28 public: // actually protected
29 virtual jboolean runAndReset();
30 private:
31 ::java::util::concurrent::FutureTask$Sync * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sync;
32 public:
33 static ::java::lang::Class class$;
36 #endif // __java_util_concurrent_FutureTask__