On Sat, Apr 17, 2010 at 14:35, Ivan Arabadzhiev
<intelru...@unrealsoft.net> wrote:
> (and I hate mutexes) :). I guess I`ll get some sort of

If you mean the Mutex class, then this class isn't the best choice in
many scenarios. It's doing too much. But in general I don't believe in
mut-ex at all. It's wasting resources blocking threads (or spinning).

> wrapper for the provider to handle threads ... I`m tired of syncing them
> 'the long way'

I don't know your scenario... Why not to have one object per thread?
Why not to have a worker thread (though creating thread explicitly
hurt performance) doing the "database work" (which is what the mut-ex
will end up actually doing) - this is inverting the problem.

Maybe you're trying to do something, that's doable better way and
somebody in list already tested the wrong paths, and will answer.

-- 
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to