Subject Re: [ib-support] Code generated by gpre and threads
Author Paul Reeves
Toni Pljakoski wrote:
>
> Hi all,
>
> I am writing some c++ code with embedded SQL code for IB6.0 for Linux (Red
> Hat 7.1, g++)
>
> Is the code generated by gpre thread safe ???

Yes, as long as you keep a single connection to a single thread. ie, you
can run lots of connections to lots of databases within a single thread
but you can't run several threads using the same database connection.
So, make sure the generated code has attachment and detachment calls and
wrap it in its own thread.

Paul
--

Paul Reeves
http://www.ibphoenix.com
taking InterBase further