Skip to content

MCAP: Replace latch with a synchronized() or lock #194

Open
@jespersmith

Description

@jespersmith

It seems that a countdown latch was used here instead of a simple lock. Adding a private final Object messagesLoadedLock = new Object(); and using synchronized(messagesLoadedLock) {} instead would avoid random nullptrexceptions due race conditions.

Same for chunckLoadedLatch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions