[tracker/threaded-extractor-modules: 3/4] tracker-extract, html: Enable threading
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/threaded-extractor-modules: 3/4] tracker-extract, html: Enable threading
- Date: Tue, 29 Nov 2011 11:52:25 +0000 (UTC)
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]