[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations ...
Gavin King
gavin.king at jboss.com
Thu Oct 12 21:27:31 EDT 2006
User: gavin
Date: 06/10/12 21:27:31
Modified: src/main/org/jboss/seam/annotations Synchronized.java
Log:
use Semaphore in @Synchronized
Revision Changes Path
1.2 +7 -1 jboss-seam/src/main/org/jboss/seam/annotations/Synchronized.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Synchronized.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/annotations/Synchronized.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Synchronized.java 10 Oct 2006 04:48:21 -0000 1.1
+++ Synchronized.java 13 Oct 2006 01:27:31 -0000 1.2
@@ -20,5 +20,11 @@
@Documented
public @interface Synchronized
{
-
+ /**
+ * How long should we wait for the lock
+ * before throwing an exception?
+ *
+ * @return the timeout in milliseconds
+ */
+ long timeout() default 1000;
}
More information about the jboss-cvs-commits
mailing list