From 9f43f23510ba2acd8e03f2822d87c74a8774b9d6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 25 Jul 2007 05:01:28 +0000 Subject: Start work on lock stuff, for threadsafe SLV2 and using SLV2 with apps that use Redland themselves. git-svn-id: http://svn.drobilla.net/lad/slv2@621 a436a847-0d15-0410-975c-d299462d15a1 --- src/slv2_internal.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/slv2_internal.h') diff --git a/src/slv2_internal.h b/src/slv2_internal.h index 2694b5d..4e8c8da 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -133,7 +133,6 @@ void slv2_plugin_classes_free(); /* ********* World ********* */ - /** Model of LV2 (RDF) data loaded from bundles. */ struct _SLV2World { @@ -145,8 +144,19 @@ struct _SLV2World { SLV2Plugins plugins; librdf_node* lv2_plugin_node; librdf_node* rdf_a_node; + + void (*rdf_lock)(void*); + void (*rdf_unlock)(void*); + void* rdf_lock_data; + int rdf_lock_count; }; +void +slv2_world_lock_if_necessary(SLV2World world); + +void +slv2_world_unlock_if_necessary(SLV2World world); + /** Load all bundles found in \a search_path. * * \param search_path A colon-delimited list of directories. These directories -- cgit v1.2.1