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: Created Feb. 7, 2018, 1:48 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..2054ac4228ccec9a14cdc4e4c4d63d65e23c5a29 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
+ */
+ Object getEngineLock();
}

Powered by Google App Engine
This is Rietveld