Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngineProvider.java

Issue 29691582: Issue 6366 - Elemhide thread is accessing released engine (Closed)
Patch Set: added "final" Created Feb. 7, 2018, 2:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngineProvider.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngineProvider.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngineProvider.java
index 75134081f192c57d265fff7b29ca5ad76af2bf4e..8101b8a6686574f4678971354ef79b8552f0e197 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngineProvider.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngineProvider.java
@@ -51,4 +51,10 @@ public interface AdblockEngineProvider
* @return registered clients count
*/
int getCounter();
+
+ /**
+ * Get lock object to prevent AdblockEngine reference from being changed
+ * @return lock object
+ */
+ Object getEngineLock();
}

Powered by Google App Engine
This is Rietveld