Skip to content

Commit b377334

Browse files
committed
Mark beam producer as volatile as it is updated for a different thread
1 parent fe23d9e commit b377334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alice/dip/DipMessagesProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class DipMessagesProcessor implements Runnable {
5656
private BlockingQueue<MessageItem> outputQueue = new ArrayBlockingQueue<MessageItem>(100);
5757

5858
private final LuminosityManager luminosityManager;
59-
private BeamModeEventsKafkaProducer beamModeEventsKafkaProducer;
59+
private volatile BeamModeEventsKafkaProducer beamModeEventsKafkaProducer;
6060

6161
public DipMessagesProcessor(BookkeepingClient bookkeepingClient, LuminosityManager luminosityManager) {
6262

0 commit comments

Comments
 (0)