Subject | Re: [firebird-support] Is the fb client library re-entrant? Even when sharing a connection? |
---|---|
Author | Dmitry Yemanov |
Post date | 2008-04-27T08:06:06Z |
Bud Millwood wrote:
calls via a mutex.
remote protocol code (as API calls are blocking at the socket layer) but
nobody guarantees that.
Dmitry
>Yes to all questions. But you have to synchronize the attach/detach
> 1. For separate threads that have their own connection handles, is the
> firebird client library re-entrant? Can two threads in this case both enter
> the client library, and furthermore, can they both execute transactions
> simultaneously? (for both Classic and Superserver, although I understand
> Classic will perform better)
calls via a mutex.
> 2. For those threads that pool a single connection handle, but use differentGenerally, no. In some cases the synchronization could be ensured by the
> transaction handles, is the library re-entrant in this case, too?
remote protocol code (as API calls are blocking at the socket layer) but
nobody guarantees that.
Dmitry