synchronized(s) { doSomething(s) }