Skip to content
Tcl Source Code View Ticket
Login

View Ticket

How enable multithreading

Closed2549c06b55adf5e819177ceade97c9bf42bfbefcCreated 6 years agoUpdated 6 years ago
Descriptionplain2021-01-22 09:12:18
For now, I was compiling TCL8.6.8 with -enable_thread=off in my application. But now I need to enable threading so which flags must be enabled during configuration and compilation also how can we test that threading.

P.S. I have thread extension .so
arvind29 Ticket [2549c06b55]: 3 changes [History diff]2021-01-24 08:56:37
dgpplain2021-01-24 13:35:37
The current release is Tcl 8.6.11.  It is recommended over earlier Tcl 8.6.* releases.

All releases of Tcl 8.6.* are thread-enabled out of the box in their default configuration.  If you find that not to be true, report that as a bug.

Verify you have a thread-enabled Tcl library with the command:

% tcl::pkgconfig get threaded
1

The standard releases of Tcl 8.6.* include a collection of bundled packages in the subdirectory "pkgs".  The Thread package is one of these.  It is also built and installed in the default configuration.  Tcl 8.6.11 comes with Thread 2.8.6
dgpplain2021-01-29 15:05:29
The status reported by [tcl::pkgconfig get threaded] is exclusively
a compile-time configuration.  There is no mechanism to change this
status at run time.

Note that Tcl 8.7 (in alpha development) begins the phasing out of any
support for a configuration without thread support.

https://tip.tcl-lang.org/491
Log in (anonymous is fine) to add a comment.