[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-plusplus
Subject: RE: threading was Lost connection to MySQL server during query
From: "Jim Wallace" <jwallace () kaneva ! com>
Date: 2007-01-17 17:28:58
Message-ID: EE4BEADA17555E4EB92A49536FA96A63256C14 () bdc ! klausatlanta ! local
[Download RAW message or body]
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@etr-usa.com]
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=jwallace@kaneva.com
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsub=mysql-plusplus@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic