Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-09-29
23:38 • Closed ticket [937970ffff]: TEA: --enable-threads by default ? plus 7 other ... artifact: a99c823652 user: hobbs
18:57 • Ticket [937970ffff]: 4 changes artifact: fea80df68d user: dgp
2005-03-25
22:41 • Ticket [937970ffff]: 1 change artifact: efabb2fada user: dgp
2005-01-26
01:33 • Ticket [937970ffff]: 1 change artifact: cd415abe4b user: dgp
2004-08-20
02:00 • Ticket [937970ffff]: 4 changes artifact: 27b4a2eb51 user: hobbs
01:37 • Ticket [937970ffff]: 4 changes artifact: e245872775 user: dgp
01:36 • Ticket [937970ffff]: 4 changes artifact: 4bce6cd088 user: dgp
2004-04-20
05:30 • Ticket [937970ffff]: 4 changes artifact: 488e1546d0 user: dgp
2004-04-19
15:37 • New ticket [937970ffff]. artifact: 3b50816f00 user: dgp

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.