Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql c api thread problem

Status
Not open for further replies.

rotis23

Programmer
Aug 29, 2002
121
GB
Hi there,

i'm using pthreads on a mysql client app. each pthread opens, accesses and closes its own mysql connection; so there is no sharing of a connection between threads.

in this setup, are there any thread safe issues? do i have to use the thread safe libraries?

the reason i'm asking - yes i'm getting a seg fault. it usually occurs when using mysql_real_connect and mysql_real_query!!

i have no problems when spawning a single pthread. I still get the problem when using the thread safe mysqlclient_r library.

any ideas?

TIA, rotis23
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top