-
Notifications
You must be signed in to change notification settings - Fork 6
/
ChangeLog
1657 lines (1171 loc) · 56 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2010-12-08 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: Fixed Bug #3129844
2010-11-18 Don Porter <[email protected]>
* Makefile.in: Revised the `make dist` target so that the
* win/README.txt: files under thread/win/vc in CVS are copied to
* win/vc/makefile.vc: thread/win in the release, where tcl/pkgs/
* win/vc/thread_win.dsp: expects to find them.
* configure: autoconf-2.59
2010-10-04 Zoran Vasiljevic <[email protected]>
* generic/configure Regenrated for TEA 3.9. Bumped version string
* generic/configiue.in in all relevant files to 2.6.7 and autoconf'ed.
* win/vc/pkg.vc
2010-09-28 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: Initialize tsdPtr->interp to NULL immediately after
releasing the interp on thread-exit that should hopefully resolve the
Tcl Bug #3026061
* generic/threadCmd.c: Removed safe-init so safe-interps should not be
able to run thread commands directly.
* lib/ttrace.tcl: Changed version to 2.6.7 to be in sync with main pkg.
* configure.in: Bumped version to 2.6.7 and autoconf'ed.
2010-09-05 Donal K. Fellows <[email protected]>
* doc/tpool.man, doc/tsv.man: Remove spaces in titledesc declaration;
doctools currently does not like it at all when generating correct
nroff output.
2010-08-12 Andreas Kupries <[email protected]>
* lib/ttrace.tcl (_serializensp, _serializeproc): Fixed typos which
smashed namespace name and opening brace of a script together, leading
to a syntax error for 'namespace eval' and preventing the use of
package Ttrace.
2010-07-25 Donal K. Fellows <[email protected]>
* lib/ttrace.tcl: [Bug 3033206]: Be careful with variables outside of
procedures; Tcl's variable resolution rules can jump in if a variable
is not declared, which can be at best surprising.
Also rewrote the namespace serialization code to be more robust.
2010-05-31 Andreas Kupries <[email protected]>
* pkgIndex.tcl.in: Fixed procedure collisions for Thread package by
inlining the load command into the ifneeded script, as is standard for
most binary packages. Tweaked the procedure for Ttrace a bit, as the
result of [info commands] is a list, and using ::apply when possible.
A named procedure is only a fallback.
2010-05-27 Andreas Kupries <[email protected]>
* lib/ttrace.tcl: Resynchronized version number with Thread.
2010-05-26 Andreas Kupries <[email protected]>
* generic/threadSpCmd.c (ThreadMutexObjCmd, ThreadRWMutexObjCmd):
[Bug 3007426]: Dropped trailing commas in enum definitions which
choked the strictly C89 AIX compiler.
2010-04-01 Zoran Vasiljevic <[email protected]>
* generic/tclXkeylist.c: Removed declaration of global TclX keylist
commands.
2010-03-30 Zoran Vasiljevic <[email protected]>
*** 2.6.6 TAGGED FOR RELEASE (thread-2-6-6) ***
* configure: Redo for TEA 3.7
* configure.in:
* generic/tclThread.h: Cosmetic changes for the inclusion
* generic/threadCmd.c: in standard Tcl distribution.
* generic/threadPoolCmd.c:
* generic/threadSpCmd.c:
* generic/threadSvCmd.c:
* generic/threadSvCmd.h:
2010-03-19 Jan Nijtmans <[email protected]>
* generic/threadSpCmd.c: Silence gcc warning: dereferencing
* .cvsignore: type-punned pointer will break
strict-aliasing rules.
* configure: Regenerated using latest TEA
2009-08-19 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: Implemented [tpool::suspend]
* doc/tpool.man: and [tpool::resume] commands
as per [RFE #2835615].
Also fixed [Bug #2833864].
2009-07-22 Jan Nijtmans <[email protected]>
* generic/tclThread.h: Remove unnecessary ';'s
* generic/tclXkeylist.c: Constify remaining of thread extension,
* generic/tclXkeylist.h: bringing it at the same level as Tcl 8.6
* generic/threadCmd.c:
* generic/threadPoolCmd.c:
* generic/threadSpCmd.c:
* generic/threadSvCmd.c:
* generic/threadSvCmd.h:
* generic/threadSvKeylistCmd.c:
* generic/threadSvKeylistCmd.h:
* generic/threadSvListCmd.c:
2009-07-16 Alexandre Ferrieux <[email protected]>
* generic/tclXkeylist.c: Constify Tcl_ObjGetType return values to
* generic/threadSvCmd.c: get rid of const warnings; #if 0 of
* generic/threadSvCmd.h: SvFinalize which is unused.
2009-05-04 Pat Thoyts <[email protected]>
* win/vc/makefile.vc: Updated the MSVC build to work with MSCV 8
* win/vc/rules.vc: and 9 on both intel and amd64 targets.
* win/vc/nmakehlp.c:
2009-05-03 Alexandre Ferrieux <[email protected]>
* generic/threadSpCmd.c: Reorder things in RemoveMutex and RemoveCondv
[Bugs 2511424,2511408]; fix a Put* leak in an error path of rwmutexes
[Bug 2511420].
2008-12-03 Jeff Hobbs <[email protected]>
* generic/threadSvCmd.c: Handle TIP#336 addition of API to access
* generic/threadSpCmd.c: interp->errorLine
2008-11-03 Jeff Hobbs <[email protected]>
* generic/threadSvCmd.c (SvObjObjCmd): safely set interp result obj
* generic/threadCmd.c (ThreadCutChannel): fix const warning
(ThreadSend): safely set interp result object [Bug #1988779]
2009-10-22 Zoran Vasiljevic <[email protected]>
* generic/threadPool.c: fixed race condition when
creating minworkers worker thread upfront.
Failure to create one results in partial pool teardown.
Fix for [Bug #2005794].
2008-05-22 Zoran Vasiljevic <[email protected]>
* generic/threadSpCmd.h: Added one cond variable per
sync bucket to wait for item deletion.
* generic/threadSpCmd.c: Threads that want to delete
any sync primitive now wait properly until the last
thread that references the primitive detaches.
Fixed (broken) reference counting of items.
Fixed wrong release of an condition variable that is
about to be time-waited.
2008-05-18 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: Corrected potential race condition
in TpoolWorker().
2007-06-30 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: Fixed signedness compiler warning
on jobId in TpoolWaitObjCmd().
2007-06-30 Zoran Vasiljevic <[email protected]>
* generic/threadSvKeylistCmd.c: Fixed off-by-1 error in argument
parsing for SvKeylkeysObjCmd(). See [Tcl Bug #1575342].
* generic/threadPoolCmd.c: Fixed [Tcl Bug #1512225] (tpool::wait and
tpool::cancel setting wrong values to passed variables)
2007-05-26 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: Fixed [tpool::post -nowait] to start
one new worker thread only if there are none started.
2007-05-03 Pat Thoyts <[email protected]>
* win/vc/rules.vc: Updated the nmake build system to match
* win/vc/nmakehlp.c: current 8.5. (support for non-intel build
* win/vc/makefile.vc: and recent versions of msvc compiler)
* win/thread.rc: Fixed line endings.
2006-12-26 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: Fixed race condition for
creating preserved threads.
* generic/threadSv.c: Removed memory leak.
2006-10-07 Zoran Vasiljevic <[email protected]>
*** 2.6.5 TAGGED FOR RELEASE (thread-2-6-5) ***
Main changes since the last release:
------------------------------------
Set versioning of (embedded) Ttrace package to
the same revision level as the main Thread package.
The Ttrace must now explicitly be loaded in every
new thread created by [thread::create] command.
The [package require Ttrace] automatically loads
Thread package as well.
NOTE: be sure to configure/make/make install
because the pkgIndex.tcl loader file is modified.
2006-10-06 Zoran Vasiljevic <[email protected]>
* generic/threadPool.c:
* generic/threadCmd.c: Removed Tcl_PkgRequire
from the new thread initialization and just
initialize the C-aspect of the extension by
calling Therad_Init. This basically discards
the last checkin, which was in a sense bad
as it made thread creation very expensive
operation.
* pkgIndex.tcl.in: Added separate handling for
Ttrace loading. Now, users needing Ttrace caps
must "package require Ttrace" which in turn
automatically calls "package require Thread".
Also, each new thread created by [thread::create]
must be initialized for Ttrace by calling the
[package require Ttrace].
On the other hand, the "package require Thread"
is only necessary to first-load the package in
the startup thread. It is not necessary to call
this explicitly in every thread created by the
[thread::create] command as the C-code will
do that automatically as the first thing.
* doc/ttrace.man: Updated example usage to reflect
above changes.
* lib/ttrace.tcl: Spliced version numbering of the
Ttrace package to the version of the Thread package
because of the weirdness of the Tcl package loading
mechanism. Also, the broadcast script used within
the ttrace::eval now explicitly loads Ttrace package
in every broadcasted thread.
2006-10-05 Zoran Vasiljevic <[email protected]>
* generic/threadPool.c:
* generic/threadCmd.c: Call Tcl_PkgRequire() in the
NewThread() to properly initialize the extension
in any new thread.
* doc/ttrace.man: Add small example of ttrace usage.
* lib/ttrace.tcl: Fixed [ttrace:eval] to not to call
[package require Ttrace] in the broadcast script as
this is now done implicitly for all new threads.
2006-08-06 Zoran Vasiljevic <[email protected]>
*** 2.6.4 TAGGED FOR RELEASE (thread-2-6-4) ***
* generic/tclXkeylist.c: Silenced various
* generic/threadCmd.c compiler warnings.
* generic/threadSvCmd.c:
* README: Removed version information.
* configure.in: Bumped to 2.6.4 version.
* confiigure: Regenerated.
2006-06-04 Zoran Vasiljevic <[email protected]>
* generic/threadSvCmd.c: SvIncrObjCmd() now implicitly creates
shared array and/or element and initializes it to zero if the
array and/or the element were not found.
* generic/tclThread.h: Removed some unusded debugging defs
2006-04-05 Jeff Hobbs <[email protected]>
* win/vc/pkg.vc (PACKAGE_VERSION): correct to 2.6.3 for MSVC make.
2006-03-28 Jeff Hobbs <[email protected]>
* generic/threadPoolCmd.c (AppExitHandler): fix teardown to
destruct pool list correctly. [Bug 1427570]
2006-03-16 Zoran Vasiljevic <[email protected]>
*** 2.6.3 TAGGED FOR RELEASE (thread-2-6-3) ***
* README: Bumped to 2.6.3
2006-03-15 Zoran Vasiljevic <[email protected]>
* configure.in: Changed BUILD_sample to
BUILD_thread for Windows compile under MinGW.
+ configure: regen
2006-03-14 Zoran Vasiljevic <[email protected]>
* configure.in: Moved to 2.6.3 release
* configure: regen
2006-02-09 Zoran Vasiljevic <[email protected]>
* generic/threadSpCmd.c: fixed race condition when testing
constraints (mutex being locked by the caller thread) when
waiting on the condition variable. Also, fixed exclusive
mutex ownership and usage counting.
* configure.in: uses TEA 3.5
* tclconfig: updated to TEA3.5
2006-01-28 Zoran Vasiljevic <[email protected]>
* generic/threadSpCmd.c: Revamped handling because of the deep
* generic/threadSpCmd.h: race condition which resulted in
* tests/thread.test: deadlocks when using exclusive mutexes.
200i-10-15 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: channel transfer code cleans
ready-to-fire events from the thread event queue
prior to cutting the channel out of the interp.
* tests/thread.test: allows channel transfer tests
for all Unices and Windows using Tcl 8.4.10+ core.
2005-09-23 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: ThreadDetach() sets the both
source and target thread ID's for the detached
channel to zero, thus signalizing the cleanup code
to leave the channel in the cleanup-list when the
thread who detached it exits.
2005-08-24 Zoran Vasiljevic <[email protected]>
* generic/tclXkeylist.c: made some calls static
so they do not interfere for static linking with
certain extensions.
2005-08-08 Zoran Vasiljevic <[email protected]>
* generic/threadSvCmd.c: fixed traversing the list
of registered object types in Sv_DuplicateObj()
(thx to [email protected])
2005-07-27 Zoran Vasiljevic <[email protected]>
*** 2.6.2 TAGGED FOR RELEASE (thread-2-6-2) ***
* configure: regen
* unix/README: added some clarifications about usage
of --with-gdbm switch
* README:
* configure.in: bumped version to 2.6.2
* aclocal.m4: fixed for alternate gdbm lib location
as per patch request #1245204
* generic/tclThread.c: removed Thread_Unload and
Thread_SafeUnload because we can't really be unloaded.
* html/thread.html: regen
* html/tpool.html: regen
* html/tsv.html: regen
* html/ttrace.html: regen
* man/thread.n: regen
* man/tpool.n: regen
* man/tsv.n: regen
* man/ttrace.n: regen
2005-07-26 Mo DeJong <[email protected]>
* Makefile.in: Remove SYSTEM_TCLSH and any
code that tries to run tclsh at build time
aside from running the test cases.
* configure: Regen.
* configure.in: Remove calls to TEA_BUILD_TCLSH
and TEA_BUILD_WISH since these were removed
from tcl.m4. This fixes up the build when
--with-tcl indicates either a build dir or
and install dir.
2005-07-25 Zoran Vasiljevic <[email protected]>
* pkgIndex.tcl.in: simplified by introducing a
helper procedure, thus avoiding too much quoting.
2005-07-24 Mo DeJong <[email protected]>
* Makefile.in: Subst TCLSH_PROG as SYSTEM_TCLSH
and subst BUILD_TCLSH and BUILD_TCLSH_PROG.
* configure: Regen.
* configure.in: Invoke TEA_BUILD_TCLSH from
tcl.m4 to correctly determine BUILD_TCLSH.
2005-04-12 Zoran Vasiljevic <[email protected]>
* generic/tclThread.h:
* generic/threadCmd.c: reverted some changes by the
last checkin which slipped in by mistake
2005-04-09 Zoran Vasiljevic <[email protected]>
* generic/tclThread.h:
* generic/threadCmd.c: added Thread_Unload and
Thread_SafeUnload to be able to load into the
8.5 shell. Both calls are still no-ops.
2005-03-18 Jeff Hobbs <[email protected]>
* Makefile.in (AR): use @AR@
(TCLSH_ENV): add TCL_THREAD_LIBRARY var
* pkgIndex.tcl.in: grok TCL_THREAD_LIBRARY var
* configure, configure.in: update to TEA 3.2
2005-03-15 Zoran Vasiljevic <[email protected]>
* pkgIndex.tcl.in: Applied patch for Bug #1163357.
Also, fixed the case when directory path contains blanks.
2005-03-05 Zoran Vasiljevic <[email protected]>
* generic/threadSvCmd.c: fixed potential access
to the unlocked (and thus eventually freed) container
* lib/ttrace.tcl: the overloaded [info] command now
does the right thing when applied to non-existing
procedures. We now transparently resolve them and
then allow the [info] to operate on them.
The ttrace::enable can now be called recursively.
Also, fixed stript generation issues for namespaced
variables containing wild escape sequences.
2005-01-03 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: fixed Tcl Bug #1095370.
We were wrongly tearing down workers on idle timer
expiry *below* the number of workers set by the
"-minworkers" option.
* lib/ttrace.tcl: added [ttrace::config] to control
some runtime options. The only option it allows now
is "-doepochs". This is a boolean flag turning the
epoch generation off/on.
Also, improved handling of XOTcl introspections in
regard to namespaced objects/classes.
2005-01-03 Zoran Vasiljevic <[email protected]>
* lib/ttrace.tcl: added [ttrace::isenabled] and modified
the [ttrace::addtrace] to dynamically activate the tracer
if the tracing is already enabled. This way we can dynamically
load tracer scripts.
2005-01-03 Zoran Vasiljevic <[email protected]>
**** RELEASE: 2.6.1 Tagged ****
* aolserver.m4:
* configure.in:
* configure: rebuild and include conditional compilation
for AOLserver which was wrongly ommited since the switch
to the TEA3 build system.
Also, we will now revert to <major>.<minor>.<patch>
version numbers for all releases.
* generic/threadCmd.c: added new option "-head" to the
[thread::send] command so scripts can be placed on the
head of the thread event queue instead of the tail only.
* doc: rebuild html/nroff files from doctools sources
* generic/threadPoolCmd.c:
* generic/threadSvCmd.h:
* generic/tclThread.h: removed compat macros for 8.3 core
* test/thread.test: added case for [thread::send -head]
2004-12-23 Zoran Vasiljevic <[email protected]>
**** RELEASE: 2.6 Tagged ****
* tcl/cmdsrv/cmdsrv.tcl: example command server listens on
loopback interface (127.0.0.1) only
* README: removed stuff about (now unsupported) Tcl8.3 core
* unix/README: clarified usage of the CONFIG file
* win/vc: adjusted MSVC files for changes introduced by TEA3
2004-12-18 Zoran Vasiljevic <[email protected]>
**** COMPATIBILITY: Dropped support for Tcl8.3 ****
* aclocal.m4: Adjusted for TEA3
* Makefile.in:
* configure.in:
* pkgIndex.tcl.in:
* configure: Rebuild with autoconf 2.59
* tests/all.tcl: Removed extra handling for Tcl 8.3
* tests/thread.tcl: since we do not support 8.3 any more
* generic/psGdbm.c:
* generic/threadCmd.c:
* generic/threadSvCmd.c:
* doc/thread.man: Updated docs for the 2.6 release
* doc/tpool.man:
* doc/tsv.man:
* doc/ttrace.man:
2004-11-27 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: Fixed race condition which resulted
in blocking at pool creation with high -minworkers threads.
This fixes the Tcl Bug #933975.
2004-11-25 Zoran Vasiljevic <[email protected]>
* tests/thread.tcl: Disabled all tests handling channel transfer
for Windows ports until core is capable of handling this correctly.
* generic/threadSpCmd.c: Fixed segmentation problems observed on
Windows ports and related to notification of an uninitialized
condition variable(s). This closes Bug #1051068 (wrongly posted
under Tcl Patches at SF).
* doc/thread.man: Fixed mutex/condvar code example. Thanks to
Gustaf Neumann of XOTcl for the tip.
2004-10-21 Andreas Kupries <[email protected]>
* tests/thread.test: Added two tests checking the working of
fileevents after a pipe channel has been transfered. The second
has to fail for any core where TIP #218 is not applied, because
the incoming alert is directed to the wrong thread for event
processing.
2004-10-20 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c (ThreadSetResult): adjusted handling of
interp result to accomodate for recent changes in Tcl core.
This closes Tcl Bug# 1050490.
2004-10-19 Andreas Kupries <[email protected]>
* generic/threadSvCmd.c: Added a prototype for
SvObjDispatchObjCmd. Prevented compilation of debug variant on
Windows due to warning as error.
* tests/thread.test: Added more tests transfering channels between
threads for in-core drivers.
2004-10-18 Andreas Kupries <[email protected]>
* generic/threadCmd.c (ThreadErrorProc): Added code to explicitly
initialize the field 'interp' in ThreadSendData. This was ok
(NULL) for a regular build, but when build with symbols the
guard pattern forced a crash in test thread-16.2.
* tests/thread.test: Duplicate test id thread-16.1 renamed to
thread-16.2.
2004-08-14 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: fixed broken parsing of
pool handles. Pool handles are now generated in the
same format as thread handles.
* generic/threadCmd.c: thread handles are now cased to
(void*) and sprint/sscanf calls are used to generate thread
handles. This concludes the effort of correcting broken
handles on 64-bit machines since the problem was actually
in Tcl itself, rather than here.
2004-07-21 Zoran Vasiljevic <[email protected]>
* generic/tclThread.h: corrected namespace prefix for
AOLserver 4.x or higher, since namespaced commands are
now supported.
* generic/threadCmd.c: allows for re-initializing of package
commands for AOLserver 4.x (or higheri) interpreters. This way
we assure to have correct set of commands even if nobody
loaded the package on server startup.
Also, thread handles returned by the package now have the form:
"tid<number>" in (yet another) attempt to rectify problems found
on Cray computers.
* generic/threadPoolCmd.c: adjusted handles of the pools to
match ones of threads (see above).
2004-07-21 Zoran Vasiljevic <[email protected]>
* doc/*: reformatted docs and added some clarifications
about mutex handling.
* generic/threadCmd.c: rewritten handling of thread handles
as passed to Tcl. Instead of casting Tcl_ThreadId to unsigned int
which brought some problems on Cray machines, we're now generating
opaque handles and match them to Tcl_ThreadId internally.
NOTE: this is not supposed to be a compatibility issue since
thread-handles should have been treated as opaque anyways.
* generic/threadSpCmd.*: improved behaviour when destroying locked
mutexes and locking the same mutex twice from the same thread.
In both cases we throw Tcl error instead of coring the process
or deadlocking the (naive) application.
* generic/threadSvCmd.*: number of tsv buckets is now compile
time constant.
* lib/ttrace.tcl: Fixed error in unknown wrapper when the passed
command was empty string.
* tests/all.tcl
* tests/thread.test: rewritten from scratch.
* tests/tpool.test:
* tests/ttrace.test:
* tests/tsv.test: new files, currently no-ops.
2004-01-31 Zoran Vasiljevic <[email protected]>
* lib/ttrace.tcl: added unconditional "package require"
call to ttrace::eval so we need not explicitly load the
Ttrace package in each and every thread. Also, fixed some
issues with errorInfo/errorCode handling.
* pkgIndex.tcl.in: fixed Tcl Bug #918137
* doc/format.tcl: fixed inclusion of man.macros in
every *.n doc file
2004-01-31 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixed incorrect handling of return
codes from the scripts passed to threads. We were wrongly
triggering error for non-error return codes such as TCL_RETURN,
TCL_BREAK, TCL_CONTINUE etc. Now we trigger error only for
TCL_ERROR and return other codes (as-is) to the caller.
This also fixes the Tcl Bug #884549.
2003-12-22 Zoran Vasiljevic <[email protected]>
* generic/threadSpCmd.c: added recursive and reader/writer locks
and associated commands
* generic/threadSpCmd.h: added new file
* generic/lib/ttrace.tcl: added Ttrace package implementation
* doc: added documentation for Ttrace package and synced other
doc files to match the release 2.6 state.
2003-12-01 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: removed the concept of foreign
thread since it broke our async message bouncing. We
still have to find the way how we should avoid broadcasting
non-package threads (like for aolserver).
2003-11-27 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixed mutex release in ThreadSend
when refusing to send message to foreign thread.
Also, clear the result of the thread::broadcast since it
should not return anything to the caller, no matter the
outcome of the command.
2003-11-27 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: mark threads created by the package
to distinguish them from "foreign" threads. We will forbid
sending messages to those since they will probably never listen.
* generic/threadSvCmd.c: corrected some typos
* generic/threadSvListCmd.c: added implementation for the
"tsv::lset" command
* generic/threadPoolCmd.c: added optional varname argument
(last arg) to the tpool::cancel
2003-11-25 Zoran Vasiljevic <[email protected]>
* doc/format.tcl: new file with a simple poor man's
documentation formatter.
* doc/thread.man
* doc/tpool.man
* doc/tsv.man: new doctools source files for building
the package documentation.
* Makefile.in: added support for building nroff and html
files out of doctools sources found in doc directory.
2003-11-18 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: added implementation of the
thread::broadcast command. This one asynchronously
sends a script to all known threads, except the caller.
2003-09-03 Zoran Vasiljevic <[email protected]>
* generic/tclXkeylist.(c|h): added keyed-list datatype
implementation borrowed from the TclX package. This is
now part of the shared variable command set.
* generic/threadSvCmd.(c|h): modified to support persistent
shared variables with plugin-architecture for different
persistent store implementations.
* generic/threadSvlistCmd.(c|h): modified to reflect added
support for persistent shared variables.
* generic/psGdbm.(c|h): added persistent store wrapper
for the GNU gdbm package.
* configure et al: regenerated with autoconf because of
added optional comilation with GNU gdbm. Updated makefiles
to process newly added files for keyed lists and persistent
stores.
2003-08-27 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: after expiration of the idle
timer, all idle workers exit unconditionaly. Before the
change, idle threads exited after getting the first job
posted. This way we were loosing work.
2003-08-26 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: fixed result list corruption
in TpoolCancelObjCmd.
2003-07-27 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: added "-nowait" option
to the "tpool::post" commandi. This allows the
caller to post jobs to the threadpool queue without
waiting for an idle thread. The implementation will
start at least one worker thread if there is none
available to satisfy the first request.
Added "tpool::cancel" command. See docs for info.
2003-05-31 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixed ListRemoveInner for
the Tcl Bug #746352
* generic/threadSpCmd.c: modified Sp_Init to
return a proper value for Tcl Bug #746352
2003-05-17 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: sets the name of the new thread
to "-tclthread-" when compiled for AOLserver
2003-04-29 Zoran Vasiljevic <[email protected]>
Tagged interim 2.5.2 release.
* configure.in
* configure: Added quick fix for autoconf issues
related to $srcdir and building of the package
from the top-level dir instead of unix/win subdir.
Thanks to Mo DeJong for the fix.
2003-04-10 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: removed checking of stopped flag
during walk of the list of active threads. This
solves some subtle thread reservation problems
with threads marked to unwind on error.
Also, added new "-errorstate" configuration option
to set/get error state of reserved unwinding thread.
2003-04-02 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c:
* generic/threadPoolCmd.c:
* generic/threadSpCmd.c:
* generic/threadSvCmd.c: always call registered exit callbacks
with non-NULL clientData, otherwise Tcl won't invoke
the registered callback.
2003-03-28 Zoran Vasiljevic <[email protected]>
* generic/threadSvList.c
* generic/threadSvCmd.c: fixed some rare cases
where we incorrectly deep-copied the list object
having zero elements.
* generic/threadCmd.c: fixed broken AOLserver 3.x
compatibility mode introduced by last 4.x changes.
2003-03-17 Zoran Vasiljevic <[email protected]>
* generic/threadSvCmd.c: fixed incompatibility
with Tcl 8.4.2 filepath object
* generic/threadCmd.c:
* aolstub.cpp: adjusted for AOLserver 4.0
2003-02-24 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixed ThreadSetResult
to correctly initialize all elements of the
result structure.
2003-02-08 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixed ListRemoveInner
to correctly update global threadList ptr when
the last referenced thread exits. This was not
the case before and we were trashing memory
leading to process exitus.
2003-01-25 Mo DeJong <[email protected]>
* generic/threadCmd.c (ThreadSendObjCmd):
The thread::send command was not working
under Win32 because threads that had an id
that was a negative number were generating
a usage error in the thread::send command.
* tests/thread.test: Add test for negative
number as thread id.
2003-01-22 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixed reference to errorInfo
when reporting error from the passed script.
2003-01-21 Mo DeJong <[email protected]>
* configure: Regenerate to include recent fixes
for mingw build support in tclconfig module.
2002-12-18 Zoran Vasiljevic <[email protected]>
* README: added some AOLserver info
* tcl/tpool/tpool.tcl: added missing tpool::names command
2002-12-14 Zoran Vasiljevic <[email protected]>
* doc/*: finished docs for the 2.5 release
2002-12-09 Zoran Vasiljevic <[email protected]>
* generic/threadPoolCmd.c: added tpool::names command
added -exitscript for tpool::create
* doc/tpool.tmml
* doc/man/tpool.n
* doc/html/tpool.html: added files. This is still the
work in progress.
2002-12-06 Zoran Vasiljevic <[email protected]>
* configure.in
* configure
* Makefile.in
* aolserver.m4: added support for compilation under
AOLserver as loadable module.
2002-12-06 Zoran Vasiljevic <[email protected]>
* generic/threadSvCmd.c: the tsv::lock now allows
for unsetting the shared array within the script argument.
* generic/threadPoolCmd.c: fixed one missing mutex unlock
in the ThreadRelease.
* tcl/tpool/tpool.tcl: implemented missing API calls found
in the C-level implementation.
* tcl/phttpd/phttpd.tcl: simplified switching to Tcl-level
threadpool implementation.
2002-12-04 Zoran Vasiljevic <[email protected]>
* generic/threadPoolcmd.c: rewritten to use
worker threads sitting on the cond var instead of
in the event loop. The poster thread still respects
i.e. does not block the event loop while posting jobs.
2002-12-03 Zoran Vasiljevic <[email protected]>
* generic/tclthread.h: added SpliceIn/SpliceOut macros.
Fixed to include exports from threadPoolCmd.c
* generic/threadSpCmd.c: does regular namespace handling
over the NS variable instead of hard-coding the "thread"
prefix for mutex/cond commands.
* generic/threadCmd.c: rewritten to use SpliceIn/SpliceOut
macros instead of hand-fiddling with linked lists.
* generic/threadPoolCmd.c: new file
* Makefile.in: added threadPoolCmd.c to list of source files.
2002-11-25 Zoran Vasiljevic <[email protected]>
* tcl/phttpd/phttpd.tcl: added raw file; no thread support
* tcl/cmdsrv/cmdsrv.tcl: first working version
2002-11-24 Zoran Vasiljevic <[email protected]>
* tcl/tpool/tpool.tcl: added threadpool implementation in Tcl
* tcl/phttpd: added directory for later mt-enabled pico-httpd
* tcl/cmdsrv: added directory for later socket command server
* doc/man/thread.n
* doc/thread.tmml
* doc/html/thread.html: new tsv::eval, thread::attach, thread::detach
* generic/threadSvCmd.h
* generic/threadSvCmd.c: added tsv::eval command
* generic/threadCmd.c: added thread::attach, thread::detach
Also, fixed thread::preserve and thread::release to accept
the thread id as the optional paramter.
2002-11-23 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixed ListRemoveInner() to recognize
and ignore already removed tsd thread structures.
Fixed some invalid TCL_OK returns which masked serious errors.
2002-11-07 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: fixes problem when trying to report
the error from an async callback when the stderr channel is
not available (wish/tclkit on windows). Thanks to
Wojciech Kocjan <[email protected]> for the correction.
2002-10-23 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: added handling of background errors
while doing an async callback.
2002-10-20 Zoran Vasiljevic <[email protected]>
* doc/html/thread.html
* doc/man/thread.n
* doc/thread.tmml: fixed "thread::send" command summary.
It was showing the wrong position of the "-async" argument.
* generic/threadSpCmd.c: adjusted mutex/cond handles to
use the same format and handling as AOLserver counterparts
when compiled for AOLserver support. This way one can mix
and match primitives declared with ns_mutex and thread::mutex
and/or ns_event and thread::cond commands.
Added thread::eval command. See documentation for syntax and usage.
2002-10-15 Jeff Hobbs <[email protected]>
* configure:
* configure.in: move the CFLAGS definition into TEA_ENABLE_SHARED
and make it pick up the env CFLAGS at configure time.
2002-08-23 Zoran Vasiljevic <[email protected]>
* threadCmd.c: fixed potential memory corruption
when releasing preserved interpreter.
[Tcl bug 599290]
2002-08-19 Zoran Vasiljevic <[email protected]>
* generic/threadSvCmd.c: we now properly invalidate
duped object string rep if the internal rep has been
regenerated.
2002-08-18 Zoran Vasiljevic <[email protected]>
* generic/threadCmd.c: updated some comments
* generic/threadSvCmd.c:
* generic/threadSvListCmd.c: fixed silly mem leak