Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TEA: --enable-threads by default ?

Closed / Fixed937970ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 21 years ago
Descriptionplain2004-04-19 15:37:11
Most extensions that are multi-interp
safe ought to be multi-thread safe
fairly trivially.  Seems that having
the --enable-threads option enabled
by default for TEA extensions would
be good.

Then those few extensions which do
make the choice to remain unsafe
for multi-threading would have to
force the -disable-threads  -- making
them the odd extensions.
dgpplain2004-04-20 05:30:43
Logged In: YES 
user_id=80530


A TEA package can currently achieve
this by changing the line

TEA_ENABLE_THREADS

in configure.in to

TEA_ENABLE_THREADS([yes])
dgpplain2004-08-20 01:36:21
Logged In: YES 
user_id=80530


TEA 3.1 appears to make
--enable-threads the default
when it detects configuration
against a --enable-threads Tcl.

That's not quite what's requested
here, but it's a big step in that direction.
dgpplain2004-08-20 01:37:52
Logged In: YES 
user_id=80530


It's a bit strange that TEA 3.1
posts a warning during configure
whenever one tries a --enable-threads
configuration on an extension while
Tcl was configured --disable-threads.

This should be a safe combination;
not clear to me what the warning is for.
hobbsplain2004-08-20 02:00:14
Logged In: YES 
user_id=72656

The warning is that you aren't really thread-safe until you
run it on a threaded Tcl.
dgp Ticket [937970ffff]: 1 change [History diff]2005-01-26 01:33:00
dgp Ticket [937970ffff]: 1 change [History diff]2005-03-25 22:41:23
dgpplain2005-09-29 18:57:30
Logged In: YES 
user_id=80530


Do I understand this is done
now in TEA 3.3?  We can close this?
hobbsplain2005-09-29 23:38:34
Logged In: YES 
user_id=72656

done in 3.3
Log in (anonymous is fine) to add a comment.