title: Releasing a "synchronized" lock
body: <p>Is something like this possible with <code>synchronized</code>, or do I need to use <code>java.util...Lock</code>:</p>
  
  <pre><code>public void outer() {
   synchronized(lock) {
    inner();
   }
  }
  
  public void inner() {
   thing1();
   release(lock) {
    result = doLongNetworkRequest();
   }
   thing2(result);
  }
  </code></pre>