Skip to content

Commit

Permalink
isOpen needs to be volatile, because multiple threads may access it.
Browse files Browse the repository at this point in the history
  • Loading branch information
asqasq committed Sep 5, 2017
1 parent ab5c3ea commit ee9feb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ibm/disni/rdma/verbs/IbvContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class IbvContext {
private RdmaVerbs verbs;
protected int cmd_fd;
protected boolean isOpen;
protected volatile boolean isOpen;
protected int numCompVectors;

protected IbvContext(int cmd_fd, int numCompVectors) throws IOException {
Expand Down

0 comments on commit ee9feb7

Please sign in to comment.