本文整理汇总了Java中com.sun.squawk.NativeUnsafe.waitForBlockingFunction方法的典型用法代码示例。如果您正苦于以下问题:Java NativeUnsafe.waitForBlockingFunction方法的具体用法?Java NativeUnsafe.waitForBlockingFunction怎么用?Java NativeUnsafe.waitForBlockingFunction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.squawk.NativeUnsafe
的用法示例。
在下文中一共展示了NativeUnsafe.waitForBlockingFunction方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: call0
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call0() {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例2: call1
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call1(int i1) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例3: call3
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call3(int i1, int i2, int i3) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, 0, 0, 0, 0, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例4: call7
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call7(int i1, int i2, int i3, int i4, int i5, int i6, int i7) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, i4, i5, i6, i7, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例5: call4
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call4(int i1, int i2, int i3, int i4) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, i4, 0, 0, 0, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例6: call5
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call5(int i1, int i2, int i3, int i4, int i5) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, i4, i5, 0, 0, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例7: call10
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call10(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例8: call8
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call8(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, i4, i5, i6, i7, i8, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例9: call9
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call9(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, i4, i5, i6, i7, i8, i9, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例10: call2
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call2(int i1, int i2) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, 0, 0, 0, 0, 0, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}
示例11: call6
import com.sun.squawk.NativeUnsafe; //导入方法依赖的package包/类
public int call6(int i1, int i2, int i3, int i4, int i5, int i6) {
if (DEBUG) {
preamble();
}
TaskExecutor te = getTE();
Address ntask = te.runBlockingFunction(funcAddr, i1, i2, i3, i4, i5, i6, 0, 0, 0, 0);
int result = NativeUnsafe.waitForBlockingFunction(ntask);
if (DEBUG) {
postscript(result);
}
te.cleanup();
return result;
}