Select Git revision
boinc_api.h
-
David Anderson authored
This is like boinc_init() but for multithread apps. Unlike boinc_init(), it suspends/resumes all threads in the app, not just one. In Unix, this is done by forking, and having the parent process handle suspend/resume messages and suspend/resume the child using signals On Win, there's some nasty code that enumerates all threads in the whole system, and suspends/resumes those in a particular process. svn path=/trunk/boinc/; revision=20054
David Anderson authoredThis is like boinc_init() but for multithread apps. Unlike boinc_init(), it suspends/resumes all threads in the app, not just one. In Unix, this is done by forking, and having the parent process handle suspend/resume messages and suspend/resume the child using signals On Win, there's some nasty code that enumerates all threads in the whole system, and suspends/resumes those in a particular process. svn path=/trunk/boinc/; revision=20054
test_dump.py 582 B
import pykat
kat = pykat.finesse.kat()
kat.parseCommands("""
bs bs1 0.5 0.5 0 0 n1 dump n3 dump
""")
print "BEFORE"
print "".join(kat.generateKatScript())
kat.nodes.replaceNode(kat.bs1, kat.bs1.nodes[3], kat.nodes.createNode("test4"))
kat.nodes.replaceNode(kat.bs1, kat.bs1.nodes[1], kat.nodes.createNode("test2"))
kat.nodes.replaceNode(kat.bs1, "n1", kat.nodes.createNode("test1"))
kat.nodes.replaceNode(kat.bs1, "n3", kat.nodes.createNode("dump"))
kat.nodes.replaceNode(kat.bs1, "test1", kat.nodes.createNode("dump"))
print "AFTER"
print "".join(kat.generateKatScript())