Skip to content

Commit

Permalink
Merge 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 3, 2024
2 parents 4e7c239 + 6b44363 commit 4855618
Show file tree
Hide file tree
Showing 31 changed files with 3,615 additions and 3,615 deletions.
132 changes: 66 additions & 66 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@

2010-04-01 Zoran Vasiljevic <zv@archiware.com>

* generic/tclXkeylist.c: Removed declaration of global TclX keylist
* generic/tclXkeylist.c: Removed declaration of global TclX keylist
commands.

2010-03-30 Zoran Vasiljevic <zv@archiware.com>
Expand All @@ -346,17 +346,17 @@

2010-03-19 Jan Nijtmans <nijtmans@users.sourceforge.net>

* generic/threadSpCmd.c: Silence gcc warning: dereferencing
* .cvsignore: type-punned pointer will break
* generic/threadSpCmd.c: Silence gcc warning: dereferencing
* .cvsignore: type-punned pointer will break
strict-aliasing rules.
* configure: Regenerated using latest TEA
* configure: Regenerated using latest TEA

2009-08-19 Zoran Vasiljevic <zv@archiware.com>

* generic/threadPoolCmd.c: Implemented [tpool::suspend]
* doc/tpool.man: and [tpool::resume] commands
as per [RFE #2835615].
Also fixed [Bug #2833864].
as per [RFE #2835615].
Also fixed [Bug #2833864].

2009-07-22 Jan Nijtmans <nijtmans@users.sourceforge.net>

Expand Down Expand Up @@ -606,13 +606,13 @@
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.
thread who detached it exits.

2005-08-24 Zoran Vasiljevic <zv@archiware.com>

* generic/tclXkeylist.c: made some calls static
so they do not interfere for static linking with
certain extensions.
certain extensions.

2005-08-08 Zoran Vasiljevic <zv@archiware.com>

Expand Down Expand Up @@ -718,7 +718,7 @@
* 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.
epoch generation off/on.
Also, improved handling of XOTcl introspections in
regard to namespaced objects/classes.

Expand All @@ -731,7 +731,7 @@

2005-01-03 Zoran Vasiljevic <zv@archiware.com>

**** RELEASE: 2.6.1 Tagged ****
**** RELEASE: 2.6.1 Tagged ****

* aolserver.m4:
* configure.in:
Expand All @@ -755,7 +755,7 @@

2004-12-23 Zoran Vasiljevic <zv@archiware.com>

**** RELEASE: 2.6 Tagged ****
**** RELEASE: 2.6 Tagged ****

* tcl/cmdsrv/cmdsrv.tcl: example command server listens on
loopback interface (127.0.0.1) only
Expand Down Expand Up @@ -797,7 +797,7 @@
* 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
* 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).
Expand Down Expand Up @@ -912,8 +912,8 @@
2004-01-31 Zoran Vasiljevic <zv@archiware.com>

* 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,
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.
Expand Down Expand Up @@ -1016,7 +1016,7 @@

* generic/threadPoolCmd.c: added "-nowait" option
to the "tpool::post" commandi. This allows the
caller to post jobs to the threadpool queue without
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.
Expand All @@ -1037,13 +1037,13 @@

2003-04-29 Zoran Vasiljevic <zv@archiware.com>

Tagged interim 2.5.2 release.
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.
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 <zv@archiware.com>

Expand Down Expand Up @@ -1150,8 +1150,8 @@
* 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/tpool/tpool.tcl: implemented missing API calls found
in the C-level implementation.

* tcl/phttpd/phttpd.tcl: simplified switching to Tcl-level
threadpool implementation.
Expand All @@ -1173,7 +1173,7 @@
prefix for mutex/cond commands.

* generic/threadCmd.c: rewritten to use SpliceIn/SpliceOut
macros instead of hand-fiddling with linked lists.
macros instead of hand-fiddling with linked lists.

* generic/threadPoolCmd.c: new file

Expand Down Expand Up @@ -1275,12 +1275,12 @@

2002-07-20 Mo DeJong <mdejong@users.sourceforge.net>

* generic/threadSvCmd.c (Sv_tclEmptyStringRep, Sv_Init):
Avoid linking to the tclEmptyStringRep variable defined
in Tcl since this makes it very difficult to load
the Thread package into an executable that has
also loaded Tcl. The previous approach used a hack
under Windows, we now use this same hack on all systems.
* generic/threadSvCmd.c (Sv_tclEmptyStringRep, Sv_Init):
Avoid linking to the tclEmptyStringRep variable defined
in Tcl since this makes it very difficult to load
the Thread package into an executable that has
also loaded Tcl. The previous approach used a hack
under Windows, we now use this same hack on all systems.
[Tcl patch 584123]

2002-07-19 Zoran Vasiljevic <zv@archiware.com>
Expand All @@ -1296,7 +1296,7 @@
the thread waiting until the target thread has really
exited. Otherwise, the command exits immediately and
target thread may exit asynchronously some time later.
This is not techically needed since one can always join
This is not techically needed since one can always join
the exiting thread, but the join command is not
available for some older Tcl versions.

Expand All @@ -1315,11 +1315,11 @@

2002-07-09 Zoran Vasiljevic <zv@archiware.com>
* README: added this file
* license.terms: added this file
* license.terms: added this file

2002-07-05 Zoran Vasiljevic <zv@archiware.com>

* tclconfig/tcl.m4: fixed reference to MINGW so we can
* tclconfig/tcl.m4: fixed reference to MINGW so we can
compile w/o MSVC under windows.

2002-07-03 Zoran Vasiljevic <zv@archiware.com>
Expand Down Expand Up @@ -1467,8 +1467,8 @@
running.

* generic/threadCmd.c: added conditional setup of the command
prefix. Now, the "NS" can be used to select the command prefix
for thread::* commands.
prefix. Now, the "NS" can be used to select the command prefix
for thread::* commands.

2002-01-26 David Gravereaux <davygrvy@pobox.com>

Expand Down Expand Up @@ -1498,29 +1498,29 @@

2002-01-02 Zoran Vasiljevic <zv@archiware.com>

* generic/threadSvListCmd.* (new): added for the new implementation
of the thread-shared-variable (tsv) interface.
* generic/threadSvCmd.c: now uses shared Tcl objects instead of strings
for storing data in shared arrays. This improves performance on large
shared data structures.
Added new tsv::* syntax, per request. This replaces older thread::sv_*
interface. Older commands are still present but will be removed as
soon we hit the 3.0 version.
* generic/threadCmd.c: revamped to support asynchronous backfiring
of scripts so we can vwait on the results of thread processing.
This also corrected the bug #464340. Affected command is thread::send.
* doc/thread.n: added docs for all thread::* and tsv::* commands.
This fixes #416850 bug report. The html/tmml files are still out of date.
* configure: built with autoconf 2.52
* config/config.guess (new): needed for the new configure
* config/config.sub (new): needed for the new configure
* Makefile.in: added lines for new generic/threadSvListCmd.c
* configure.in: moving to 2.4 version.
* unix/threadUnix.c: removed traces of ThreadKill. It is still not clear
wether we should implement this functionality or not.
* win/threadWin.c: see above.
* pkgIndex.tcl.in: fixed to correctly handle version for different Tcl core
versions.
* generic/threadSvListCmd.* (new): added for the new implementation
of the thread-shared-variable (tsv) interface.
* generic/threadSvCmd.c: now uses shared Tcl objects instead of strings
for storing data in shared arrays. This improves performance on large
shared data structures.
Added new tsv::* syntax, per request. This replaces older thread::sv_*
interface. Older commands are still present but will be removed as
soon we hit the 3.0 version.
* generic/threadCmd.c: revamped to support asynchronous backfiring
of scripts so we can vwait on the results of thread processing.
This also corrected the bug #464340. Affected command is thread::send.
* doc/thread.n: added docs for all thread::* and tsv::* commands.
This fixes #416850 bug report. The html/tmml files are still out of date.
* configure: built with autoconf 2.52
* config/config.guess (new): needed for the new configure
* config/config.sub (new): needed for the new configure
* Makefile.in: added lines for new generic/threadSvListCmd.c
* configure.in: moving to 2.4 version.
* unix/threadUnix.c: removed traces of ThreadKill. It is still not clear
wether we should implement this functionality or not.
* win/threadWin.c: see above.
* pkgIndex.tcl.in: fixed to correctly handle version for different Tcl core
versions.

2001-09-05 David Gravereaux <davygrvy@pobox.com>

Expand Down Expand Up @@ -1688,8 +1688,8 @@
2000-10-16 Zoran Vasiljevic <zv@munich.com>

* generic/threadSvCmd.c ThreadSvUnsetObjCmd(): deadlocked.
Forgot to release shared-array lock which resulted in
deadlock after first successful unset of the variable.
Forgot to release shared-array lock which resulted in
deadlock after first successful unset of the variable.

2000-08-29 David Gravereaux <davygrvy@ajubasolutions.com>

Expand Down Expand Up @@ -1783,7 +1783,7 @@

2000-07-03 Zoran Vasiljevic <zv@munich.com>

Summary of changes:
Summary of changes:

* generic/threadSpCmd.c: new file with implementation of
"thread::mutex" and "thread::cond" commands. Documentation
Expand All @@ -1805,19 +1805,19 @@
Added "thread::exists" command.

Moved most of internal functions in threadCmd.c to statics,
except the Thread*ObjCmd().
except the Thread*ObjCmd().

Changed behaviour of "thread::exit". It now simply flips the
bit to signal thread stuck in thread::wait to gracefuly exit.
Consequence: command now does not trigger error on thread exit.
Also, thread event queue is now properly cleared.
ThreadWait() and ThreadStop() are newly added to support this.
Also the ThreadSpecificData has one more integer: "stopped"
bit to signal thread stuck in thread::wait to gracefuly exit.
Consequence: command now does not trigger error on thread exit.
Also, thread event queue is now properly cleared.
ThreadWait() and ThreadStop() are newly added to support this.
Also the ThreadSpecificData has one more integer: "stopped"

Replaced ref's to obsolete Tcl_GlobalEval() with Tcl_EvalEx().

Fixed broken 'thread::create -joinable script';
was missing initialization of script variable
was missing initialization of script variable

Added calls to initialize new commands in threadSpCmd.c
and threadSvCmd.c files.
Expand Down
6 changes: 3 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ $(PKG_LIB_FILE): $(PKG_OBJECTS) ${THREAD_ZIP_FILE}
if test "x$(MACHER)" = "x" ; then \
cat ${THREAD_ZIP_FILE} >> ${PKG_LIB_FILE}; \
else $(MACHER) append ${PKG_LIB_FILE} ${THREAD_ZIP_FILE} /tmp/macher_output; \
mv /tmp/macher_output ${PKG_LIB_FILE}; chmod u+x ${PKG_LIB_FILE}; \
mv /tmp/macher_output ${PKG_LIB_FILE}; chmod u+x ${PKG_LIB_FILE}; \
fi; \
${NATIVE_ZIP} -A ${PKG_LIB_FILE} \
|| echo 'ignore zip-error by adjust sfx process (not executable?)'; \
Expand All @@ -342,7 +342,7 @@ $(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
# you will have to modify the paths to reflect this:
#
# sample.$(OBJEXT): $(srcdir)/generic/sample.c
# $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@
# $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@
#
# Setting the VPATH variable to a list of paths will cause the makefile
# to look into these paths when resolving .c to .obj dependencies.
Expand Down Expand Up @@ -475,7 +475,7 @@ install-lib-binaries: binaries
lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
if test -f $$lib; then \
echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
$(INSTALL_DATA) $$lib "$(DESTDIR)$(pkglibdir)/$$lib"; \
$(INSTALL_DATA) $$lib "$(DESTDIR)$(pkglibdir)/$$lib"; \
fi; \
fi; \
fi; \
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ HOW TO GET SUPPORT ?
The extension is maintained, enhanced, and distributed freely by the Tcl
community. The home for sources and bug/patch database is on fossil:

https://core.tcl-lang.org/thread
https://core.tcl-lang.org/thread

Alternatively, you are always welcome to post your questions, problems
and/or suggestions relating the extension (or any other Tcl issue)
Expand Down
Loading

0 comments on commit 4855618

Please sign in to comment.