trythil Tux's lil' helper
Joined: 06 Jun 2002 Posts: 123 Location: RHIT, Terre Haute, IN, USA
|
Posted: Mon Jun 24, 2002 8:00 pm Post subject: Possibility of 'thread-safe' USE flag? |
|
|
Some packages (notably PHP and MySQL, but there are others) have thread-safety code that can be optionally compiled in. I'm wondering: is there the possibility of a 'thread-safe', 'thread', etc. USE flag in the future to accomodate situations like this? Since I work with and debug threaded code quite frequently, it'd be nice to ensure that packages that my code depends on can be configured to be thread-safe without me manually tweaking ebuild scripts
Sorry if this has been suggested before; never found it in the forums, BugZilla, or the MySQL ebuild script.
Edit: Sorry, this doesn't apply to MySQL after all, as I just found out:
Code: |
trythil@beleriand trythil $ cat mysql-thread.c
#include <stdio.h>
#include <mysql/mysql.h>
int main()
{
my_init();
printf("%d\n", mysql_thread_safe());
}
trythil@beleriand trythil $ gcc -lmysqlclient_r mysql-thread.c
trythil@beleriand trythil $ ./a.out
1
trythil@beleriand trythil $
|
I suppose I'm too used to MySQL 4.0.1, where libmysqlclient (minus the -r) is thread-safe. PHP, though, still reports thread safety as disabled. |
|