Subject | Re: [IBO] Another disconnectTopool question |
---|---|
Author | mp527 |
Post date | 2003-12-12T22:25:58Z |
The pool is created as a tobject decendent I believe and it controls
access by a critical section, so it is thread safe.
From what I saw in the IBO source it's basicly a thread safe tlist.
The connections are not actually in any thread, the threads just
access them by pointer.
similar to how you can type cast a object as integer then send that
interger from a thread back to the main form and then typecast the
integer back to it's original type.
Trust me it works great and is thread safe. I sound like a beer
commercial :-)
access by a critical section, so it is thread safe.
From what I saw in the IBO source it's basicly a thread safe tlist.
The connections are not actually in any thread, the threads just
access them by pointer.
similar to how you can type cast a object as integer then send that
interger from a thread back to the main form and then typecast the
integer back to it's original type.
Trust me it works great and is thread safe. I sound like a beer
commercial :-)
>to
> In order to be a thread-safe pool in this context, IBO would have
> take a connection to the server from another, previous, thread.