2 messages in com.mysql.lists.plusplusRE: MySQL++ and pthreads ...
FromSent OnAttachments
Cyril ZEKSER13 Nov 2000 07:03 
Sander Pilon13 Nov 2000 07:08 
Subject:RE: MySQL++ and pthreads ...
From:Sander Pilon (san@3dnews.net)
Date:11/13/2000 07:08:49 AM
List:com.mysql.lists.plusplus

I'm running it in a multithreaded environment.

But, G++ is overall very mt-UNsafe, we had to compile libstdc++ again, because its new/delete is by default mt-unsafe, and we're STILL having trouble. But not with MySQL++, so I guess it is mt-safe :)

-S

-----Original Message----- From: Cyril ZEKSER [mailto:czek@visiospace.com] Sent: 13 November 2000 16:04 To: plus@lists.mysql.com Subject: MySQL++ and pthreads ...

Hi all,

I want to scan my DB from within 3 pthreads. I built any connection as local ones, and with a mutex when writing into shared memory.

All I get is the followong 2 bugs:

out of memory (from within malloc called by MySQLRow::operator[])

or

segmentation fault (from within memcpy called by the same as above).

One question here : Is Mysql++ reentrant ? or how can I do this my pthreads. Need I compile the lib with special statements? Or is it simply impossible...