Cursors and Multiple threads

Peter Lindgren Peter.Lindgren at fdt.se
Wed Jun 16 09:09:11 CDT 2004


Hi!
valentina-bounces at lists.macserve.net:
> Ours is a multi-threaded application.  I know that valentina
> cache can be accessed only by one thread at a time.
> 
> If the following happens in that sequence, is the following OK
[...]
> In other words, can we get 'cursors' in a thread-safe fashion
> by locking the db, and then 'use' the cursors without the
> locking mechanism?

Haven't used Valentina in a real-time/threaded system, but generally, anything that isn't thread-safe should go in its own thread. All calls must be guarded by mutexes and/or queues.

/Peter
-- 
Peter Lindgren, dataingenjör
0920-24 33 00   http://www.fdt.se/


More information about the Valentina mailing list