[vlma-devel] commit: Make "runtime fields" volatile. (Adrien Grand )

git version control git at videolan.org
Sat Feb 14 07:17:14 CET 2009


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sat Feb 14 04:00:13 2009 +0100| [3dd0f1a7f0e9c77d4c9604a01f51d3f172c967a5] | committer: Adrien Grand 

Make "runtime fields" volatile.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=3dd0f1a7f0e9c77d4c9604a01f51d3f172c967a5
---

 .../main/java/org/videolan/vlma/model/Adapter.java |    6 +++---
 .../main/java/org/videolan/vlma/model/Program.java |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java b/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java
index 559168c..c54e8b6 100644
--- a/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java
+++ b/vlma-api/src/main/java/org/videolan/vlma/model/Adapter.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2008 the VideoLAN team
+ * Copyright (C) 2006-2009 the VideoLAN team
  *
  * This file is part of VLMa.
  *
@@ -29,9 +29,9 @@ import java.io.Serializable;
  */
 public abstract class Adapter implements Serializable {
 
-    private boolean isUp;
+    private volatile boolean isUp;
 
-    private boolean isBusy;
+    private volatile boolean isBusy;
 
     private String name;
 
diff --git a/vlma-api/src/main/java/org/videolan/vlma/model/Program.java b/vlma-api/src/main/java/org/videolan/vlma/model/Program.java
index 95cb3f2..0020085 100644
--- a/vlma-api/src/main/java/org/videolan/vlma/model/Program.java
+++ b/vlma-api/src/main/java/org/videolan/vlma/model/Program.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2008 the VideoLAN team
+ * Copyright (C) 2006-2009 the VideoLAN team
  *
  * This file is part of VLMa.
  *
@@ -36,9 +36,9 @@ public class Program implements Serializable {
 
     private String id;
 
-    private Adapter adapter;
+    private volatile Adapter adapter;
 
-    private boolean broadcastState;
+    private volatile boolean broadcastState;
 
     private Media media;
 



More information about the vlma-devel mailing list