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: [email protected]
For additional commands, e-mail: [email protected]