ss: Add proper locking to the AttributeTree
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 2 Sep 2015 23:18:54 +0000 (19:18 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 3 Sep 2015 18:52:23 +0000 (14:52 -0400)
commita69a9003f89c33915a2cafaed4e1e78505081e68
tree31780f1c3c1b6da9923de59776f6c74135414cf6
parent11a4b9ac8ee36fc2f4ddb338886be253f2ada0e0
ss: Add proper locking to the AttributeTree

Instead of using a Collections.synchronizedList, extend the locking
the whole object. This makes sure that data stays consistent in the
longer methods like getQuarkAndAdd()/getQuarkDontAdd().

Bug: 476474.

Change-Id: Ia57f77ad109dd8c0b90e1824ba04d3a57140c1b6
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/55156
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/AttributeTree.java
This page took 0.025854 seconds and 5 git commands to generate.