Comment the locking mechanisms in ContextInfoManager
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 2 Jun 2016 09:26:54 +0000 (05:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Jun 2016 13:20:49 +0000 (15:20 +0200)
Coverity didn't like our non-locking of the get() method. The
lock is actually only needed for the registration/unregistration
of retrievers, the get() can access the ConcurrentHashMap
directly.

Add a few comments to help explain this.

Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.024817 seconds and 4 git commands to generate.