is ok, I'm pretty
sure it is.
One note, I see you write my_thread_init/my_thread_end in your message,
the correct names are mysql_thread_init and mysql_thread_end, the
my_init function should be called once per process, not in each thread.
I've looked carefully at our code, and for one sof
sure it is.
One note, I see you write my_thread_init/my_thread_end in your message,
the correct names are mysql_thread_init and mysql_thread_end, the
my_init function should be called once per process, not in each thread.
John
On Wed, 2004-10-13 at 10:39 +0100, Philippe Poelvoorde wrote:
>
Hi,
I'm using the C api within a multithread environement. Is that allright
if I have a function that looks like this :
saveParam(){
my_thread_init();
[connexion/query/close]
my_thread_end();
}
Can I call it several time from the same thread ? Or do I have to do
my_thread_init/end only
he following is the code with places of my_init(), my_init_thread(),
and my_thread_end().
Since I'm new to using this library I would be grateful for any kind of
guidance on where I'm going wrong.
regards,
void * threadTest2(void *jl){
int *te = (int *)jl;
int t1 = (*te);
// my_