You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2010/01/23 00:13:04 UTC
svn commit: r902306 -
/labs/magma/trunk/foundation-basics/src/main/java/org/apache/magma/basics/startup/Cycle.java
Author: simoneg
Date: Fri Jan 22 23:13:04 2010
New Revision: 902306
URL: http://svn.apache.org/viewvc?rev=902306&view=rev
Log:
Removed locking in cycle
Modified:
labs/magma/trunk/foundation-basics/src/main/java/org/apache/magma/basics/startup/Cycle.java
Modified: labs/magma/trunk/foundation-basics/src/main/java/org/apache/magma/basics/startup/Cycle.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/foundation-basics/src/main/java/org/apache/magma/basics/startup/Cycle.java?rev=902306&r1=902305&r2=902306&view=diff
==============================================================================
--- labs/magma/trunk/foundation-basics/src/main/java/org/apache/magma/basics/startup/Cycle.java (original)
+++ labs/magma/trunk/foundation-basics/src/main/java/org/apache/magma/basics/startup/Cycle.java Fri Jan 22 23:13:04 2010
@@ -90,7 +90,7 @@
/**
* Components that manage cycles calls this method to end the cycle when an error occurs.
*/
- public static synchronized void stopForError() {
+ public static void stopForError() {
tl.get().inError = true;
stop();
}
@@ -98,7 +98,7 @@
/**
* Components that manage cycles calls this method to end the cycle normally.
*/
- public static synchronized void stop() {
+ public static void stop() {
try {
tl.get().globalTearDown();
} finally {
@@ -173,7 +173,7 @@
/**
* Runs all the teardown methods.
*/
- private void globalTearDown() {
+ private synchronized void globalTearDown() {
for (Method method : teardowns) {
try {
method.invoke(this);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org