From: cherierm Date: Fri, 21 Sep 2007 15:39:30 +0000 (+0000) Subject: correction of sem.acquire() method X-Git-Tag: v3.3~1135 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e4bab1d29858681449ae3bb3051954f8a935bb82?hp=69d4750d05a6552a65395f2a40dfca3ae5405b03 correction of sem.acquire() method git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4656 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/java/simgrid/msg/Sem.java b/src/java/simgrid/msg/Sem.java index ea386d1c12..7166a5f7b4 100644 --- a/src/java/simgrid/msg/Sem.java +++ b/src/java/simgrid/msg/Sem.java @@ -1,13 +1,3 @@ -/* - * $Id$ - * - * Copyright 2006,2007 Martin Quinson, Malek Cherier - * All right reserved. - * - * This program is free software; you can redistribute - * it and/or modify it under the terms of the license - *(GNU LGPL) which comes with this package. - */ package simgrid.msg; public class Sem { @@ -38,7 +28,7 @@ public class Sem { } public synchronized void release() { - ++permits_; + ++(this.permits_); notify(); } -} +} \ No newline at end of file