[tracker/threaded-extractor-modules: 3/4] tracker-extract, html: Enable threading



commit 0527daffad7db2cc8f6e51b04d8731ec1a8cd1c1
Author: Carlos Garnacho <carlos lanedo com>
Date:   Tue Nov 29 12:39:29 2011 +0100

    tracker-extract,html: Enable threading
    
    Loading and parsing different documents in separate threads
    should be fine.

 src/tracker-extract/tracker-extract-html.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-html.c b/src/tracker-extract/tracker-extract-html.c
index b03a4a5..5973eb3 100644
--- a/src/tracker-extract/tracker-extract-html.c
+++ b/src/tracker-extract/tracker-extract-html.c
@@ -230,6 +230,14 @@ parser_characters (void          *data,
 }
 
 G_MODULE_EXPORT gboolean
+tracker_extract_module_init (TrackerModuleThreadAwareness  *thread_awareness_ret,
+                             GError                       **error)
+{
+	*thread_awareness_ret = TRACKER_MODULE_MULTI_THREAD;
+	return TRUE;
+}
+
+G_MODULE_EXPORT gboolean
 tracker_extract_get_metadata (TrackerExtractInfo *info)
 {
 	TrackerSparqlBuilder *metadata;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]