http://ifeve.com/locks/#lockReentrance http://ifeve.com/reentrance-lockout/ http://ifeve.com/read-write-locks/#reentrance
英文的原话是: Because the doSomething methods in Widget and LoggingWidget are both synchronized, each tries to acquire the lock on the Widget before proceeding. 我咋感觉应该是lock on the LoggingW……
62,615
社区成员
307,307
社区内容
加载中
试试用AI创作助手写篇文章吧