コード例 #1
0
from java.lang.Thread import currentThread

t1 = currentThread()

engine2.setVar("t1", t1)
engine2.runScript("src/test/resources/test-data/script", "thread-test-2.py")
コード例 #2
0
from java.lang.Thread import currentThread

t2 = currentThread()

if t1 == t2:
    maxObject.error("same thread in two engines")
else:
    maxObject.post("thread test OK")