Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
correction of sem.acquire() method
[simgrid.git] / src / java / simgrid / msg / Sem.java
index ea386d1..7166a5f 100644 (file)
@@ -1,13 +1,3 @@
-/*\r
- * $Id$\r
- *\r
- * Copyright 2006,2007 Martin Quinson, Malek Cherier           \r
- * All right reserved. \r
- *\r
- * This program is free software; you can redistribute \r
- * it and/or modify it under the terms of the license \r
- *(GNU LGPL) which comes with this package. \r
- */\r
 package simgrid.msg;\r
 \r
 public class Sem { \r
@@ -38,7 +28,7 @@ public class Sem {
        }\r
 \r
        public synchronized void release() {\r
-               ++permits_;\r
+               ++(this.permits_);\r
                notify();\r
        }\r
-}\r
+}
\ No newline at end of file