Skip to content

Commit 5ca308c

Browse files
author
jan.nijtmans
committed
Merge trunk. Re-generate configure with latest autoconf
2 parents 7c5928c + 21cdf69 commit 5ca308c

File tree

13 files changed

+3615
-2606
lines changed

13 files changed

+3615
-2606
lines changed

configure

Lines changed: 3537 additions & 2546 deletions
Large diffs are not rendered by default.

doc/html/thread.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
21
<!DOCTYPE html><html><head>
2+
<meta charset="UTF-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">
34
<title>thread - Tcl Threading</title>
45
<style type="text/css"><!--
56
HTML {
@@ -97,7 +98,7 @@
9798
<!-- thread.n
9899
-->
99100
<body><div class="doctools">
100-
<h1 class="doctools_title">thread(n) 2.8 &quot;Tcl Threading&quot;</h1>
101+
<h1 class="doctools_title">thread(n) 3.0 &quot;Tcl Threading&quot;</h1>
101102
<div id="name" class="doctools_section"><h2><a name="name">Name</a></h2>
102103
<p>thread - Extension for script access to Tcl threading</p>
103104
</div>
@@ -115,8 +116,8 @@ <h1 class="doctools_title">thread(n) 2.8 &quot;Tcl Threading&quot;</h1>
115116
<div id="synopsis" class="doctools_section"><h2><a name="synopsis">Synopsis</a></h2>
116117
<div class="doctools_synopsis">
117118
<ul class="doctools_requirements">
118-
<li>package require <b class="pkgname">Tcl 8.7</b></li>
119-
<li>package require <b class="pkgname">thread <span class="opt">?2.9?</span></b></li>
119+
<li>package require <b class="pkgname">Tcl 9.0</b></li>
120+
<li>package require <b class="pkgname">thread <span class="opt">?3.0?</span></b></li>
120121
</ul>
121122
<ul class="doctools_syntax">
122123
<li><a href="#1"><b class="cmd">thread::create</b> <span class="opt">?-joinable?</span> <span class="opt">?-preserved?</span> <span class="opt">?script?</span></a></li>
@@ -363,7 +364,12 @@ <h1 class="doctools_title">thread(n) 2.8 &quot;Tcl Threading&quot;</h1>
363364
<dt><a name="12"><b class="cmd">thread::broadcast</b> <i class="arg">script</i></a></dt>
364365
<dd><p>This command passes a <i class="arg">script</i> to all threads created by the
365366
package for execution. It does not wait for response from any of
366-
the threads.</p></dd>
367+
the threads.</p>
368+
<p>The sending thread (the one executing the thread::broadcast command) does
369+
not send the script to itself.</p>
370+
<p>Each receiving thread is directed to place evaluation of the send script
371+
at the head of its event queue, stepping in front of any other events
372+
awaiting processing.</p></dd>
367373
<dt><a name="13"><b class="cmd">thread::wait</b></a></dt>
368374
<dd><p>This enters the event loop so a thread can receive messages from
369375
the <b class="cmd">thread::send</b> command. This command should only be used

doc/html/tpool.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
21
<!DOCTYPE html><html><head>
2+
<meta charset="UTF-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">
34
<title>tpool - Tcl Threading</title>
45
<style type="text/css"><!--
56
HTML {
@@ -97,7 +98,7 @@
9798
<!-- tpool.n
9899
-->
99100
<body><div class="doctools">
100-
<h1 class="doctools_title">tpool(n) 2.8 &quot;Tcl Threading&quot;</h1>
101+
<h1 class="doctools_title">tpool(n) 3.0 &quot;Tcl Threading&quot;</h1>
101102
<div id="name" class="doctools_section"><h2><a name="name">Name</a></h2>
102103
<p>tpool - Part of the Tcl threading extension implementing pools of worker threads.</p>
103104
</div>
@@ -115,8 +116,8 @@ <h1 class="doctools_title">tpool(n) 2.8 &quot;Tcl Threading&quot;</h1>
115116
<div id="synopsis" class="doctools_section"><h2><a name="synopsis">Synopsis</a></h2>
116117
<div class="doctools_synopsis">
117118
<ul class="doctools_requirements">
118-
<li>package require <b class="pkgname">Tcl 8.7</b></li>
119-
<li>package require <b class="pkgname">thread <span class="opt">?2.9?</span></b></li>
119+
<li>package require <b class="pkgname">Tcl 9.0</b></li>
120+
<li>package require <b class="pkgname">thread <span class="opt">?3.0?</span></b></li>
120121
</ul>
121122
<ul class="doctools_syntax">
122123
<li><a href="#1"><b class="cmd">tpool::create</b> <span class="opt">?options?</span></a></li>
@@ -214,9 +215,9 @@ <h1 class="doctools_title">tpool(n) 2.8 &quot;Tcl Threading&quot;</h1>
214215
threads is equal to the maximum number of worker threads, as defined
215216
during the threadpool creation, the command will enter the event loop and
216217
service events while waiting for one of the worker threads to become idle.
217-
If the optional <span class="opt">?-nowait?</span> argument is given, the command will not wait
218-
for one idle worker. It will just place the job in the pool's job queue
219-
and return immediately.</p>
218+
If the optional <span class="opt">?-nowait?</span> argument is given, the command just places the
219+
job in the pool's job queue without waiting for an idle worker or creating a
220+
new one, even if the pool would still have room for additional threads.</p>
220221
<p>The command returns the ID of the posted job. This ID is used for subsequent
221222
<b class="cmd">tpool::wait</b>, <b class="cmd">tpool::get</b> and <b class="cmd">tpool::cancel</b> commands to wait
222223
for and retrieve result of the posted script, or cancel the posted job

doc/html/tsv.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
21
<!DOCTYPE html><html><head>
2+
<meta charset="UTF-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">
34
<title>tsv - Tcl Threading</title>
45
<style type="text/css"><!--
56
HTML {
@@ -97,7 +98,7 @@
9798
<!-- tsv.n
9899
-->
99100
<body><div class="doctools">
100-
<h1 class="doctools_title">tsv(n) 2.8 &quot;Tcl Threading&quot;</h1>
101+
<h1 class="doctools_title">tsv(n) 3.0 &quot;Tcl Threading&quot;</h1>
101102
<div id="name" class="doctools_section"><h2><a name="name">Name</a></h2>
102103
<p>tsv - Part of the Tcl threading extension allowing script level manipulation of data shared between threads.</p>
103104
</div>
@@ -119,8 +120,8 @@ <h1 class="doctools_title">tsv(n) 2.8 &quot;Tcl Threading&quot;</h1>
119120
<div id="synopsis" class="doctools_section"><h2><a name="synopsis">Synopsis</a></h2>
120121
<div class="doctools_synopsis">
121122
<ul class="doctools_requirements">
122-
<li>package require <b class="pkgname">Tcl 8.7</b></li>
123-
<li>package require <b class="pkgname">thread <span class="opt">?2.9?</span></b></li>
123+
<li>package require <b class="pkgname">Tcl 9.0</b></li>
124+
<li>package require <b class="pkgname">thread <span class="opt">?3.0?</span></b></li>
124125
</ul>
125126
<ul class="doctools_syntax">
126127
<li><a href="#1"><b class="cmd">tsv::names</b> <span class="opt">?pattern?</span></a></li>

doc/html/ttrace.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
21
<!DOCTYPE html><html><head>
2+
<meta charset="UTF-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">
34
<title>ttrace - Tcl Threading</title>
45
<style type="text/css"><!--
56
HTML {
@@ -97,7 +98,7 @@
9798
<!-- ttrace.n
9899
-->
99100
<body><div class="doctools">
100-
<h1 class="doctools_title">ttrace(n) 2.8 &quot;Tcl Threading&quot;</h1>
101+
<h1 class="doctools_title">ttrace(n) 3.0 &quot;Tcl Threading&quot;</h1>
101102
<div id="name" class="doctools_section"><h2><a name="name">Name</a></h2>
102103
<p>ttrace - Trace-based interpreter initialization</p>
103104
</div>
@@ -116,8 +117,8 @@ <h1 class="doctools_title">ttrace(n) 2.8 &quot;Tcl Threading&quot;</h1>
116117
<div id="synopsis" class="doctools_section"><h2><a name="synopsis">Synopsis</a></h2>
117118
<div class="doctools_synopsis">
118119
<ul class="doctools_requirements">
119-
<li>package require <b class="pkgname">Tcl 8.7</b></li>
120-
<li>package require <b class="pkgname">thread <span class="opt">?2.9?</span></b></li>
120+
<li>package require <b class="pkgname">Tcl 9.0</b></li>
121+
<li>package require <b class="pkgname">thread <span class="opt">?3.0?</span></b></li>
121122
</ul>
122123
<ul class="doctools_syntax">
123124
<li><a href="#1"><b class="cmd">ttrace::eval</b> <i class="arg">arg</i> <span class="opt">?arg ...?</span></a></li>
@@ -151,14 +152,14 @@ <h1 class="doctools_title">ttrace(n) 2.8 &quot;Tcl Threading&quot;</h1>
151152
<p>In a nutshell, a short sample illustrating the usage of the ttrace
152153
with the Tcl threading extension:</p>
153154
<pre class="doctools_example">
154-
% package require Ttrace
155-
2.8.1
156-
% set t1 [thread::create {package require Ttrace; thread::wait}]
155+
% package require ttrace
156+
3.0.1
157+
% set t1 [thread::create {package require ttrace; thread::wait}]
157158
tid0x1802800
158159
% ttrace::eval {proc test args {return test-[thread::id]}}
159160
% thread::send $t1 test
160161
test-tid0x1802800
161-
% set t2 [thread::create {package require Ttrace; thread::wait}]
162+
% set t2 [thread::create {package require ttrace; thread::wait}]
162163
tid0x1804000
163164
% thread::send $t2 test
164165
test-tid0x1804000

doc/man/thread.n

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'\"
22
'\" Generated from file '' by tcllib/doctools with format 'nroff'
33
'\"
4-
.TH "thread" n 2\&.8 "Tcl Threading"
4+
.TH "thread" n 3\&.0 "Tcl Threading"
55
.\" The -*- nroff -*- definitions below are for supplemental macros used
66
.\" in Tcl/Tk manual entries.
77
.\"
@@ -273,9 +273,9 @@ Database Class: \\fB\\$3\\fR
273273
.SH NAME
274274
thread \- Extension for script access to Tcl threading
275275
.SH SYNOPSIS
276-
package require \fBTcl 8\&.5\fR
276+
package require \fBTcl 9\&.0\fR
277277
.sp
278-
package require \fBthread ?2\&.9?\fR
278+
package require \fBthread ?3\&.0?\fR
279279
.sp
280280
\fBthread::create\fR ?-joinable? ?-preserved? ?script?
281281
.sp
@@ -362,10 +362,8 @@ and sending scripts to threads for evaluation\&.
362362
This command creates a thread that contains a Tcl interpreter\&.
363363
The Tcl interpreter either evaluates the optional \fBscript\fR, if
364364
specified, or it waits in the event loop for scripts that arrive via
365-
the \fBthread::send\fR command\&. Both of them would take place simultaneously
366-
with the return of command \fBthread::create\fR to the caller thread\&.
367-
Neither the caller is waiting for the finishing of optional \fBscript\fR,
368-
nor the result, if any, of the \fBscript\fR is returned to the caller\&.
365+
the \fBthread::send\fR command\&. The result, if any, of the
366+
optional \fBscript\fR is never returned to the caller\&.
369367
The result of \fBthread::create\fR is the ID of the thread\&. This is
370368
the opaque handle which identifies the newly created thread for
371369
all other package commands\&. The handle of the thread goes out of scope
@@ -589,6 +587,13 @@ thus being executed in the LIFO fashion\&.
589587
This command passes a \fIscript\fR to all threads created by the
590588
package for execution\&. It does not wait for response from any of
591589
the threads\&.
590+
.sp
591+
The sending thread (the one executing the thread::broadcast command) does
592+
not send the script to itself\&.
593+
.sp
594+
Each receiving thread is directed to place evaluation of the send script
595+
at the head of its event queue, stepping in front of any other events
596+
awaiting processing\&.
592597
.TP
593598
\fBthread::wait\fR
594599
This enters the event loop so a thread can receive messages from
@@ -861,3 +866,4 @@ is also supported\&.
861866
\fIhttp://www\&.tcl\&.tk/doc/howto/thread_model\&.html\fR, tpool, tsv, ttrace
862867
.SH KEYWORDS
863868
events, message passing, mutex, synchronization, thread
869+

doc/man/tpool.n

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'\"
22
'\" Generated from file '' by tcllib/doctools with format 'nroff'
33
'\"
4-
.TH "tpool" n 2\&.8 "Tcl Threading"
4+
.TH "tpool" n 3\&.0 "Tcl Threading"
55
.\" The -*- nroff -*- definitions below are for supplemental macros used
66
.\" in Tcl/Tk manual entries.
77
.\"
@@ -273,9 +273,9 @@ Database Class: \\fB\\$3\\fR
273273
.SH NAME
274274
tpool \- Part of the Tcl threading extension implementing pools of worker threads\&.
275275
.SH SYNOPSIS
276-
package require \fBTcl 8\&.5\fR
276+
package require \fBTcl 9\&.0\fR
277277
.sp
278-
package require \fBthread ?2\&.9?\fR
278+
package require \fBthread ?3\&.0?\fR
279279
.sp
280280
\fBtpool::create\fR ?options?
281281
.sp
@@ -389,9 +389,9 @@ newly created thread is initialized\&. If the current number of worker
389389
threads is equal to the maximum number of worker threads, as defined
390390
during the threadpool creation, the command will enter the event loop and
391391
service events while waiting for one of the worker threads to become idle\&.
392-
If the optional ?-nowait? argument is given, the command will not wait
393-
for one idle worker\&. It will just place the job in the pool's job queue
394-
and return immediately\&.
392+
If the optional ?-nowait? argument is given, the command just places the
393+
job in the pool's job queue without waiting for an idle worker or creating a
394+
new one, even if the pool would still have room for additional threads\&.
395395
.sp
396396
The command returns the ID of the posted job\&. This ID is used for subsequent
397397
\fBtpool::wait\fR, \fBtpool::get\fR and \fBtpool::cancel\fR commands to wait
@@ -494,3 +494,4 @@ by forcing any request to wait until a thread is available to process it\&.
494494
thread, tsv, ttrace
495495
.SH KEYWORDS
496496
thread, threadpool
497+

doc/man/tsv.n

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'\"
22
'\" Generated from file '' by tcllib/doctools with format 'nroff'
33
'\"
4-
.TH "tsv" n 2\&.8 "Tcl Threading"
4+
.TH "tsv" n 3\&.0 "Tcl Threading"
55
.\" The -*- nroff -*- definitions below are for supplemental macros used
66
.\" in Tcl/Tk manual entries.
77
.\"
@@ -273,9 +273,9 @@ Database Class: \\fB\\$3\\fR
273273
.SH NAME
274274
tsv \- Part of the Tcl threading extension allowing script level manipulation of data shared between threads\&.
275275
.SH SYNOPSIS
276-
package require \fBTcl 8\&.5\fR
276+
package require \fBTcl 9\&.0\fR
277277
.sp
278-
package require \fBthread ?2\&.9?\fR
278+
package require \fBthread ?3\&.0?\fR
279279
.sp
280280
\fBtsv::names\fR ?pattern?
281281
.sp
@@ -626,3 +626,4 @@ AOLserver, a highly scalable Web server from America Online\&.
626626
thread, tpool, ttrace
627627
.SH KEYWORDS
628628
locking, synchronization, thread shared data, threads
629+

doc/man/ttrace.n

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'\"
22
'\" Generated from file '' by tcllib/doctools with format 'nroff'
33
'\"
4-
.TH "ttrace" n 2\&.8 "Tcl Threading"
4+
.TH "ttrace" n 3\&.0 "Tcl Threading"
55
.\" The -*- nroff -*- definitions below are for supplemental macros used
66
.\" in Tcl/Tk manual entries.
77
.\"
@@ -273,9 +273,9 @@ Database Class: \\fB\\$3\\fR
273273
.SH NAME
274274
ttrace \- Trace-based interpreter initialization
275275
.SH SYNOPSIS
276-
package require \fBTcl 8\&.5\fR
276+
package require \fBTcl 9\&.0\fR
277277
.sp
278-
package require \fBthread ?2\&.9?\fR
278+
package require \fBthread ?3\&.0?\fR
279279
.sp
280280
\fBttrace::eval\fR \fIarg\fR ?arg \&.\&.\&.?
281281
.sp
@@ -328,17 +328,17 @@ with the Tcl threading extension:
328328

329329

330330

331-
% package require Ttrace
332-
2\&.8\&.2
331+
% package require ttrace
332+
3\&.0\&.1
333333

334-
% set t1 [thread::create {package require Ttrace; thread::wait}]
334+
% set t1 [thread::create {package require ttrace; thread::wait}]
335335
tid0x1802800
336336

337337
% ttrace::eval {proc test args {return test-[thread::id]}}
338338
% thread::send $t1 test
339339
test-tid0x1802800
340340

341-
% set t2 [thread::create {package require Ttrace; thread::wait}]
341+
% set t2 [thread::create {package require ttrace; thread::wait}]
342342
tid0x1804000
343343

344344
% thread::send $t2 test
@@ -504,3 +504,4 @@ replicated from the master to other Tcl thread/interpreters\&.
504504
thread, tpool, tsv
505505
.SH KEYWORDS
506506
command tracing, introspection
507+

doc/thread.man

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[comment {-*- tcl -*- doctools manpage}]
2-
[manpage_begin thread n 2.8]
2+
[manpage_begin thread n 3.0]
33
[moddesc {Tcl Threading}]
44
[titledesc {Extension for script access to Tcl threading}]
5-
[require Tcl 8.7]
6-
[require thread [opt 2.8]]
5+
[require Tcl 9.0]
6+
[require thread [opt 3.0]]
77

88
[description]
99
The [package thread] extension creates threads that contain Tcl

0 commit comments

Comments
 (0)