You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/11/24 03:20:28 UTC

[GitHub] [skywalking] wu-sheng commented on pull request #8177: Update GRPCExporter.java

wu-sheng commented on pull request #8177:
URL: https://github.com/apache/skywalking/pull/8177#issuecomment-977465611


   Please take a look at `ReentrantLock` comments in JDK.
   
   ```java
    * <p>It is recommended practice to <em>always</em> immediately
    * follow a call to {@code lock} with a {@code try} block, most
    * typically in a before/after construction such as:
    *
    * <pre> {@code
    * class X {
    *   private final ReentrantLock lock = new ReentrantLock();
    *   // ...
    *
    *   public void m() {
    *     lock.lock();  // block until condition holds
    *     try {
    *       // ... method body
    *     } finally {
    *       lock.unlock()
    *     }
    *   }
    * }}</pre>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org