Merge "Need a public way to wait for cookie operations." into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
160c18a4d2
@@ -519,11 +519,17 @@ public final class CookieManager {
|
||||
}
|
||||
}
|
||||
|
||||
synchronized void waitForCookieOperationsToComplete() {
|
||||
while (pendingCookieOperations > 0) {
|
||||
try {
|
||||
wait();
|
||||
} catch (InterruptedException e) { }
|
||||
/**
|
||||
* Waits for pending operations to completed.
|
||||
* {@hide} Too late to release publically.
|
||||
*/
|
||||
public void waitForCookieOperationsToComplete() {
|
||||
synchronized (this) {
|
||||
while (pendingCookieOperations > 0) {
|
||||
try {
|
||||
wait();
|
||||
} catch (InterruptedException e) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user