Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
correction of sem.acquire() method
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 15:39:30 +0000 (15:39 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 15:39:30 +0000 (15:39 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4656 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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
 package simgrid.msg;\r
 \r
 public class Sem { \r
@@ -38,7 +28,7 @@ public class Sem {
        }\r
 \r
        public synchronized void release() {\r
        }\r
 \r
        public synchronized void release() {\r
-               ++permits_;\r
+               ++(this.permits_);\r
                notify();\r
        }\r
                notify();\r
        }\r
-}\r
+}
\ No newline at end of file