Marc A. Mueller writes:
> 
> Hi,
> 
> I want my application (LINUX, C++) to send periodically an information
> to a MySQL-Server, regardless of whats it is actually doing at the
> moment. Can I use the alarm signal for this (is mysql_query()
> signal-reentrant) ?
> 
> I'm using the normal mysql-library, not mysql++.
> Versions should not be of interest.
> 
> Thank You,
> 
> Marc Mueller
> 
> 

You have to build libmysqlclient as thread safe.

You also have to have mutex around all 
mysql_query
mysql_user or _store_result
mysql_fetch_row

or to use separate MYSQL, MYSQL_RES ... structs for each thread.

-- 
Regards,
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to