tmf: Synchronize on a class literal, not on this.getClass()
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 11 Dec 2014 15:47:53 +0000 (10:47 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 11 Dec 2014 16:38:01 +0000 (11:38 -0500)
Change-Id: I4612e842d8494d651c37bc77b4109f03dba4056a
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/38051
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/request/TmfEventRequest.java

index a01efe483d6f04f2964c780aac9abf4012701520..771e710f46f9db139cdfd1da805d657b34edf13e 100644 (file)
@@ -157,7 +157,7 @@ public abstract class TmfEventRequest implements ITmfEventRequest {
             int nbRequested,
             ExecutionType priority) {
 
-        synchronized (this.getClass()) {
+        synchronized (TmfEventRequest.class) {
             fRequestId = fRequestNumber++;
         }
         fDataType = dataType;
This page took 0.024716 seconds and 5 git commands to generate.