Subject | Re: [ib-support] Code generated by gpre and threads |
---|---|
Author | Paul Reeves |
Post date | 2001-08-10T10:21:49Z |
Toni Pljakoski wrote:
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
>Yes, as long as you keep a single connection to a single thread. ie, you
> 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 ???
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