[vlc-devel] [PATCH] SQLite module

Rémi Denis-Courmont remi at remlab.net
Thu Nov 12 11:31:02 CET 2009


On Thu, 12 Nov 2009 10:31:55 +0100, Sébastien Escudier
<sebastien-devel at celeos.eu> wrote:
> Quoting Rémi Denis-Courmont <remi at remlab.net>:
> 
>> > Some sqlite builds can be non threadsafe. Better to be safe.
>>
>> If SQLite is not thread-safe, then your locking scheme won't work
> anyway. You
>> would need to use a static lock and ensure nobody else is using SQLite
> in the
>> process (best of luck with that).
> 
> We may consider requiring a thread safe version of SQLITE

I would tend to agree. But it depends on:
1/ whether we expect multi-thread workloads or not,
   (e.g. how many threads will access the DB?)
2/ whether thread-UNsafety is per database or for the whole library.

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list