1 #include "xmlvm.h"
2
3 #include "java_io_Flushable.h"
4
5 __TIB_DEFINITION_java_io_Flushable __TIB_java_io_Flushable = {
6 0, // classInitializationBegan
7 0, // classInitialized
8 -1, // initializerThreadId
9 __INIT_java_io_Flushable, // classInitializer
10 "java.io.Flushable", // className
11 "java.io", // package
12 JAVA_NULL, // enclosingClassName
13 JAVA_NULL, // enclosingMethodName
14 JAVA_NULL, // signature
15 (__TIB_DEFINITION_TEMPLATE*) &__TIB_java_lang_Object, // extends
16 -1, // sizeInstance
17 XMLVM_TYPE_INTERFACE};
18
19 JAVA_OBJECT __CLASS_java_io_Flushable;
20 JAVA_OBJECT __CLASS_java_io_Flushable_1ARRAY;
21 JAVA_OBJECT __CLASS_java_io_Flushable_2ARRAY;
22 JAVA_OBJECT __CLASS_java_io_Flushable_3ARRAY;
23
24 static XMLVM_FIELD_REFLECTION_DATA __field_reflection_data[] = {
25 };
26
27 static XMLVM_METHOD_REFLECTION_DATA __method_reflection_data[] = {
28 };
29
__INIT_java_io_Flushable()30 void __INIT_java_io_Flushable()
31 {
32 staticInitializerLock(&__TIB_java_io_Flushable);
33
34 // While the static initializer mutex is locked, locally store the value of
35 // whether class initialization began or not
36 int initBegan = __TIB_java_io_Flushable.classInitializationBegan;
37
38 // Whether or not class initialization had already began, it has begun now
39 __TIB_java_io_Flushable.classInitializationBegan = 1;
40
41 staticInitializerUnlock(&__TIB_java_io_Flushable);
42
43 JAVA_LONG curThreadId = (JAVA_LONG)pthread_self();
44 if (initBegan) {
45 if (__TIB_java_io_Flushable.initializerThreadId != curThreadId) {
46 // Busy wait until the other thread finishes initializing this class
47 while (!__TIB_java_io_Flushable.classInitialized) {
48 // do nothing
49 }
50 }
51 } else {
52 __TIB_java_io_Flushable.initializerThreadId = curThreadId;
53 XMLVM_CLASS_USED("java.io.Flushable")
54 __INIT_IMPL_java_io_Flushable();
55 }
56 }
57
__INIT_IMPL_java_io_Flushable()58 void __INIT_IMPL_java_io_Flushable()
59 {
60 __TIB_java_io_Flushable.numInterfaces = 0;
61 __TIB_java_io_Flushable.declaredFields = &__field_reflection_data[0];
62 __TIB_java_io_Flushable.numDeclaredFields = sizeof(__field_reflection_data) / sizeof(XMLVM_FIELD_REFLECTION_DATA);
63 //__TIB_java_io_Flushable.methodDispatcherFunc = method_dispatcher;
64 __TIB_java_io_Flushable.declaredMethods = &__method_reflection_data[0];
65 __TIB_java_io_Flushable.numDeclaredMethods = sizeof(__method_reflection_data) / sizeof(XMLVM_METHOD_REFLECTION_DATA);
66
67 __CLASS_java_io_Flushable = XMLVM_CREATE_CLASS_OBJECT(&__TIB_java_io_Flushable);
68 __TIB_java_io_Flushable.clazz = __CLASS_java_io_Flushable;
69 __TIB_java_io_Flushable.baseType = JAVA_NULL;
70 __CLASS_java_io_Flushable_1ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_java_io_Flushable);
71 __CLASS_java_io_Flushable_2ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_java_io_Flushable_1ARRAY);
72 __CLASS_java_io_Flushable_3ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_java_io_Flushable_2ARRAY);
73
74 __TIB_java_io_Flushable.classInitialized = 1;
75 }
76
77