I was doing the same thing, just using MySQL on the other thread, but
since MySQL++ isn't MT, you really need to use the mysql api calls to
setup threading. The online doc does a good job, but here's what I do
In main init:
UINT tsafe = mysql_thread_safe();
assert( tsafe == 1 );
On thread:
if ( mysql_thread_init() != 0 )
error
...
mysql_thread_end();
-----Original Message-----
From: Warren Young [mailto:mysqlpp@stripped]
Sent: Wednesday, January 17, 2007 12:05 PM
To: MySQL++ Mailing List
Subject: Re: Lost connection to MySQL server during query
Urscheler, Roger (COM Chantry CA) wrote:
>
> Does mysql++ 2.2 provide more functionallity regarding threading?
Not really. It's all scheduled for v2.4. (Not v2.3 because that's a
release for stuff I want to get out of the way fairly quickly, which
ideally would have been in v2.2. v2.3 basically exists because I didn't
want to delay v2.2 any longer.)
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=1
| Thread |
|---|
| • RE: threading was Lost connection to MySQL server during query | Jim Wallace | 17 Jan |