Skip to content

ReentrantLock Not Properly Used in AtOnce.java Causes Potential Thread Safety Issue #4906

@0pdd

Description

@0pdd

The puzzle 4884-97fce65f from #4884 has to be resolved:

* @todo #4884:30min Use ReentrantLock instead of 'synchronized' in AtOnce.
* We should use ReentrantLock instead of 'synchronized' to avoid potential
* deadlocks when multiple AtOnce attributes are used together.
* Moreover, 'synchronized' keyword is forbidden by qulice.

The puzzle was created by Yegor Bugayenko on 01-Mar-26.

Estimate: 30 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions