Commit b1e344c9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a5649f69
......@@ -38,15 +38,37 @@ def main():
db2 = DB(zstor2)
# XXX doc
def init():
# XXX
transaction.begin()
zconn = db.open()
root = zconn.root()
root['obj1'] = PInt(0)
root['obj2'] = PInt(0)
transaction.commit()
zconn.close()
def C1():
def C1(ctx, N):
# XXX
def C2():
def C2(ctx, N):
# XXX
init()
N = 1000
wg = sync.WorkGroup(context.background())
wg.go(C1, N)
wg.go(C2, N)
wg.wait()
if __name__ == '__main__':
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment