mysql and thrille

3 views
Skip to first unread message

Sangmin Park

unread,
Mar 28, 2011, 6:57:34 PM3/28/11
to Nick Jalbert, thrille...@googlegroups.com
Hi Nick,

I found that Thrille does not work with mysql because mysql uses its own pthread library (very old one. attached in this email). So, Thrille dynamically interposes a subset of current pthread library. 

I have two methods to address the problem: (1) modifying Thrille internal to interpose functions that mysql uses, or (2) modifying mysql code to include all current pthread library. I was looking at the code to go with the first method, but I found that it would be very difficult because I need to change all the code that use semaphores (mysql does not use semaphore).

What do you think about the problem?

Thanks,
Sangmin
my_pthread.h

Nick Jalbert

unread,
Mar 29, 2011, 5:08:42 PM3/29/11
to thrille...@googlegroups.com
Hi Sangmin,

That is quite strange.  Two questions:

1) What version of MySQL are you trying to run on?

2) Is the MySQL pthread library included as a source file with the MySQL distribution?  Or is it just the system's library that gets statically linked in at compile time?

My first thought is to try to modify the build process (i.e. for MySQL 5.0 the reference can be found at http://dev.mysql.com/doc/refman/5.0/en/source-configuration-options.html).  Perhaps try the "--with-pthread" option to see if that changes things.

-Nick

Sangmin Park

unread,
Mar 29, 2011, 5:18:52 PM3/29/11
to thrille...@googlegroups.com, Nick Jalbert
Hi Nick,

I am using MySQL version 4, and found that version 5 is also using its own old pthread library. 

I think --with-pthread option will work. Thank you for your help. :)

Sangmin

Reply all
Reply to author
Forward
0 new messages