summaryrefslogtreecommitdiffstats
path: root/generic/tclThread.c
Commit message (Collapse)AuthorAgeFilesLines
* Backout the "dullest commit ever" (not my words ....). It breaks the build. jan.nijtmans2024-05-141-3/+3
| | | JN: Many of those changes are actually good, but there are too many changes to be able to search for a bug somewhere. Feel free to re-apply, after assuring it's really only whitespace changes. (my advise: do that after 9.0b2)
* Clean up a lot of small whitespace issues dkf2024-05-131-3/+3
| | | This is the dullest commit ever. Sorry.
* More whitespace cleanupdkf2024-05-101-1/+0
|
* Make it more clear that TclpThreadExit() and Tcl_ExitThread() are ↵jan.nijtmans2024-04-251-1/+1
|\ | | | | | | TCL_NORETURN too
| * Make it more clear that TclpThreadExit() and Tcl_ExitThread() are ↵jan.nijtmans2024-04-251-1/+1
| | | | | | | | TCL_NORETURN too.
* | TIP 660. No compiler warnings. Tests suite pass on Win and Ubuntuapnadkarni2023-03-301-1/+1
| |
* | Merge 8.7jan.nijtmans2021-08-231-7/+7
|\ \ | |/
| * Make everything compile warning-free when TCL_THREADS=0jan.nijtmans2021-08-231-7/+7
| |\
| | * Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-2/+2
| | | | | | | | | | | | size_t or int
* | | Merge 8.7jan.nijtmans2020-12-081-2/+2
|\ \ \ | |/ /
| * | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-2/+2
| | | | | | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | | Merge 8.7jan.nijtmans2020-07-211-11/+11
|\ \ \ | |/ /
| * | Merge 8.6jan.nijtmans2020-07-201-11/+11
| |\ \ | | |/
| | * Use "Global" in stead of "Master" internally, where "Master" is not used in ↵jan.nijtmans2020-07-201-11/+11
| | | | | | | | | | | | the Master-Slave paradigm and where this makes sense.
* | | Merge 8.7jan.nijtmans2020-03-311-0/+2
|\ \ \ | |/ /
| * | Fix a few warning-message in --enable-symbols-mem modejan.nijtmans2020-03-311-0/+2
| | |
* | | Merge 8.7jan.nijtmans2020-02-281-1/+1
|\ \ \ | |/ /
| * | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-1/+1
| | |
| * | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-2/+2
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-8/+8
|\ \ \ | |/ / | | | | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* | | merge trunkjan.nijtmans2018-05-231-25/+10
|\ \ \ | |/ /
| * | Unbreak build with other CFLAGS, such as TCL_MEM_DEBUG=1 or TCL_THREADS=0 on ↵jan.nijtmans2018-05-231-2/+2
| | | | | | | | | | | | Linux
| * | Simplify usage of TCL_THREAD, along the lines of ↵jan.nijtmans2018-05-221-24/+9
| | | | | | | | | | | | [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
| * | TIP #491 implementation: Threading Support: phasing out non-threaded buildsjan.nijtmans2018-05-171-10/+10
| |/
| * Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin ↵jan.nijtmans2015-09-241-39/+0
| |\ | | | | | | | | | 9f8b7bea5344f1b0 broke netbsd's thread notifier
| | * Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin ↵jan.nijtmans2015-09-241-39/+0
| | |\ | | | | | | | | | | | | 9f8b7bea5344f1b0 broke netbsd's thread notifier
| | | * merge trunk. jan.nijtmans2015-08-191-37/+0
| | | | | | | | | | | | Remove now unused internal functions.
| * | | Eliminate (harmless) compiler warning. No functional change.jan.nijtmans2015-08-211-0/+2
| |\ \ \ | | |/ / | | | / | | |/ | |/|
| | * Eliminate some (harmless) compiler warnings. No functional change.jan.nijtmans2015-08-211-12/+14
| | |
| * | Fix bug [57945b574a6df0332efc4ac96b066f7c347b28f7|57945b574a]: lock in ↵jan.nijtmans2015-07-231-0/+37
| |\ \ | | |/ | | | | | | forking process under heavy multithreading. Thanks to Joe Mistachkin for the implementation of the fix, and Gustaf Neumann for the original report and testing the fix.
| | * Fix bug [57945b574a6df0332efc4ac96b066f7c347b28f7|57945b574a]: lock in ↵jan.nijtmans2015-07-231-0/+37
| | |\ | | | | | | | | | | | | forking process under heavy multithreading. Thanks to Joe Mistachkin for the implementation of the fix, and Gustaf Neumann for the original report and testing the fix.
| | | * Rename the new API to TclMutexUnlockAndFinalize as it is not platform-specific.Joe Mistachkin2015-06-171-2/+2
| | | |
| | | * Change Tcl_MutexUnlockAndFinalize() to internal function ↵jan.nijtmans2015-06-161-3/+2
| | | | | | | | | | | | | | | | TclpMutexUnlockAndFinalize(). This does not require a TIP, and still should fix the reported bug.
| | | * Fix typo in the previous check-in.Joe Mistachkin2015-05-171-1/+1
| | | |
| | | * Draft fix for a potential race condition in the new ↵Joe Mistachkin2015-05-171-3/+8
| | | | | | | | | | | | | | | | Tcl_MutexUnlockAndFinalize API. Not yet tested.
| | | * Add new public Tcl C API to allow a mutex to be unlocked and then finalized ↵Joe Mistachkin2015-04-091-0/+33
| | |/ | |/| | | | | | | atomically. Candidate fix for bug [57945b574a].
* | | Deprecate otherValuePtr and ptrAndLongRep. Some more minor tweaks.jan.nijtmans2016-12-231-1/+1
| | |
* | | merge novemjan.nijtmans2015-06-181-2/+7
|\ \ \ | |/ /
| * | Rework the *FinalizeThread*() routines so that the quick exit preferencedgp2014-12-171-2/+2
| | | | | | | | | | | | is respected without need to run afoul of encoding finalizations. tests pass now. All changes are fully internal.
| * | Refine TclFinalizeThreadData so that the quick-exit optimization really only ↵ferrieux2014-09-081-1/+6
| | | | | | | | | | | | affects exit.
* | | merge novemjan.nijtmans2014-05-021-2/+6
|\ \ \ | |/ /
| * | [3493120] Plug memory leak in thread exit.dgp2014-04-241-2/+6
| |\ \ | | |/
| | * Memory leak after thread exit, fixed (alloc cache released by exit), belong ↵sebres2014-04-221-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | to ticket [3493120] Moved over to branch bug-3493120. This is not ready for the core-8-5-branch. Segfaults all over the place in a thread-enabled build on a CentOS system.
* | | merge novem. jan.nijtmans2013-02-041-3/+3
|/ / | | | | Some more API changes int -> size_t
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-7/+8
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclThread.c: Back-port locking changes from Tcl8.5vasiljevic2007-11-261-1/+11
| | | | | | | | | | | | | | | in Tcl_Mutex/ConditionFinlize. Now we properly master-lock the finalization of sync primitives.
| | * Prevent RemeberSyncObj() from growing the syncvasiljevic2007-06-301-3/+14
| | | | | | | | | | | | | | | object lists by reusing already free'd slots, if possible. See discussion on Bug 1726873 for more information.