[tracker/threaded-extractor-modules: 1/4] tracker-extract, flac: Enable threading
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/threaded-extractor-modules: 1/4] tracker-extract, flac: Enable threading
- Date: Tue, 29 Nov 2011 11:52:15 +0000 (UTC)
commit 70a4457c33d7ec9a5cbb0a138b47bc0766571698
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Nov 29 12:31:58 2011 +0100
tracker-extract,flac: Enable threading
creating and using metadata iterators on different threads
should be safe.
src/tracker-extract/tracker-extract-flac.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-flac.c b/src/tracker-extract/tracker-extract-flac.c
index b212823..26cf925 100644
--- a/src/tracker-extract/tracker-extract-flac.c
+++ b/src/tracker-extract/tracker-extract-flac.c
@@ -151,6 +151,14 @@ add_tuple (TrackerSparqlBuilder *metadata,
}
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)
{
FLAC__Metadata_SimpleIterator *iter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]