[jboss-svn-commits] JBL Code SVN: r28789 - in labs/jbosstm/workspace/adinn/byteman/trunk: src/org/jboss/byteman/rule/helper and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Aug 4 08:50:31 EDT 2009
Author: adinn
Date: 2009-08-04 08:50:30 -0400 (Tue, 04 Aug 2009)
New Revision: 28789
Modified:
labs/jbosstm/workspace/adinn/byteman/trunk/docs/ProgrammersGuide.odt
labs/jbosstm/workspace/adinn/byteman/trunk/docs/ProgrammersGuide.pdf
labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java
Log:
renamed built-in addCountDown to createCountDown but retained old name for compatibility -- fixes BYTEMAN-20
Modified: labs/jbosstm/workspace/adinn/byteman/trunk/docs/ProgrammersGuide.odt
===================================================================
(Binary files differ)
Modified: labs/jbosstm/workspace/adinn/byteman/trunk/docs/ProgrammersGuide.pdf
===================================================================
(Binary files differ)
Modified: labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java
===================================================================
--- labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java 2009-08-04 11:19:42 UTC (rev 28788)
+++ labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java 2009-08-04 12:50:30 UTC (rev 28789)
@@ -274,7 +274,15 @@
}
/**
- * builtin to test add a countdown identified by a specific object and with the specified
+ * alias for createCountDown provided for backwards compatibility
+ */
+ public boolean addCountDown(Object identifier, int count)
+ {
+ return createCountDown(identifier, count);
+ }
+
+ /**
+ * builtin to test create a countdown identified by a specific object and with the specified
* count. n.b. this builtin checks if a countdown identified by the supplied object is
* currently installed, returning false if so, otherwise atomically adds the countdown
* and returns true. This allows the builtin to be used safely in conditions where concurrent
@@ -285,7 +293,7 @@
* calls to {@link #countDown(Object)} will return false and the third call will return true.
* @return true if a new countdown is installed, false if one already exists.
*/
- public boolean addCountDown(Object identifier, int count)
+ public boolean createCountDown(Object identifier, int count)
{
synchronized (countDownMap) {
if (countDownMap.get(identifier) == null) {
More information about the jboss-svn-commits
mailing list