You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2011/01/07 18:29:15 UTC
svn commit: r1056405 -
/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
Author: rickhall
Date: Fri Jan 7 17:29:15 2011
New Revision: 1056405
URL: http://svn.apache.org/viewvc?rev=1056405&view=rev
Log:
Fix comment.
Modified:
felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java?rev=1056405&r1=1056404&r2=1056405&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java Fri Jan 7 17:29:15 2011
@@ -4752,12 +4752,12 @@ public class Felix extends BundleImpl im
}
/**
- * Promotes a bundle lock to the global lock. This is called by a thread
- * wanting the global lock, but already holding a bundle lock (currently
- * only when updating a bundle). Since it is possible to deadlock when
- * trying to acquire the global lock while holding a bundle lock, this
- * method may fail if a potential deadlock is detected.
- * @param bundle The bundle already locked by the calling thread.
+ * Attempts to acquire the global lock. Will also promote a bundle lock
+ * to the global lock, if the calling thread already holds a bundle lock.
+ * Since it is possible to deadlock when trying to acquire the global lock
+ * while holding a bundle lock, this method may fail if a potential deadlock
+ * is detected. If the calling thread does not hold a bundle lock, then it
+ * will wait indefinitely to acquire the global.
* @return <tt>true</tt> if the global lock was successfully acquired,
* <tt>false</tt> otherwise.
**/