TEA_ENABLE_THREADS and pthread_mutex_init
Closed / Wont Fix1460182fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 20 years ago
Descriptionplain2006-03-28 18:13:27
The TEA_ENABLE_THREADS macro goes through a lot of work to find out what library 'pthread_mutex_init' lives in and to set THREADS_LIBS. However, THREADS_LIBS is not used anywhere else in the TEA build system; and in general extensions shouldn't call pthread_* directly anyway (they should generally use the Tcl public interface). It's not clear whether defining USE_THREAD_ALLOC is necessary either; this doesn't affect the public interface (though it is referenced by tclInt.h).
hobbsplain2006-03-29 01:19:19
Logged In: YES user_id=72656 There are a few libraries that make use of pthreads and rely on TEA (like sqlite), so I'd rather leave it in.
jenglish Open ticket [1460182fff].
[History diff]2006-04-08 09:36:59
jenglishplain2006-04-08 09:37:09
Logged In: YES user_id=68433 Just a followup -- sqlite does use pthreads, but it doesn't use the THREADS_LIBS macro (or anything else thread-related from TEA); it has its own autconferry for this. I can't find any extensions that do use THREADS_LIBS (at least on purpose).
mistachkinplain2006-05-16 12:36:57
Logged In: YES user_id=113501 If it's not harming anything, I say leave it in.
hobbs Pending ticket [1460182fff].
[History diff]2007-02-10 02:12:47
sf-robotplain2007-02-24 10:20:11
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.