Skip to content

互斥锁不需要向外暴露close api #3

Description

@marsxuefeng

互斥锁不需要向外暴露close api的观点如下:

  1. 按照目前的1.0版本的逻辑,Lock close后其他atoma.core.DefaultLease#atomaLeasableResources变量不会移除Lock的cache,导致其他地方调用getLock时,可能得到的是一个已经closed的Lock。
  2. Lease在最后关闭时会统一销毁所有的Lock实例。

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationgood first issueGood for newcomers

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions