Skip to content

Commit

Permalink
Set lockObject
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Engel committed Jun 2, 2023
1 parent 0a5ff9d commit 8410a30
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import java.util.UUID;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;


/**
Expand All @@ -15,7 +16,7 @@
final class ActivityCorrelator {

private static ActivityId s_ActivityId;
private static Lock lockObject;
private static Lock lockObject = new ReentrantLock();

// Get the current ActivityId in TLS
static ActivityId getCurrent() {
Expand Down

0 comments on commit 8410a30

Please sign in to comment.