func doLock(data) dt = d("Object") blk.println('lock (', dt, ') {').inc() event("onLock", dt) blk.dec().println('}') end