Multithreading support

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
AndreyDaeron
Posts: 1
Joined: Mon 06 Feb 2012 15:57

Multithreading support

Post by AndreyDaeron » Tue 07 Feb 2012 09:15

Hello

I have found information in another DAC's FAQ, that they are multi threading safe (with connection sharing limitation).

What about PgDAC? Are they thread-safe or not?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 07 Feb 2012 11:27

Hello,

Our PgDAC is thread-safe, so you can use it for developing multithread applications

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Post by snorkel » Wed 08 Feb 2012 22:11

You still have to use a connection per thread though don't you?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 09 Feb 2012 14:53

Hello,

You should use a separate connection for each thread, or use the CriticalSection

Post Reply