summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-3/+3
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Merge 8.6jan.nijtmans2020-08-111-13/+13
|\
| * Code cleanup: less of use "register" keyword, and better use of typecastsjan.nijtmans2020-08-111-18/+19
| |
* | Merge 8.6jan.nijtmans2020-07-201-21/+21
|\ \ | |/
| * Use "Global" in stead of "Master" internally, where "Master" is not used in ↵jan.nijtmans2020-07-201-26/+26
| | | | | | | | the Master-Slave paradigm and where this makes sense.
* | Merge 8.7jan.nijtmans2020-02-131-2/+2
|\ \
| * \ Merge 8.6jan.nijtmans2020-01-131-2/+2
| |\ \ | | |/
| | * Silence some gcc-9 compiler warnings.jan.nijtmans2020-01-131-2/+2
| | |
* | | Merge 8.7. Continue implementation for win32jan.nijtmans2019-08-021-1/+1
|\ \ \ | |/ /
| * | Eliminate more usage of C++-specific keywords in C-code.jan.nijtmans2019-07-251-1/+1
| | |
* | | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-7/+7
|/ /
* | Clean up code style and add key phrases to documentation.dkf2018-09-281-52/+95
| |
* | merge core-8-branchdkf2018-09-281-3/+3
|\ \
| * \ merge 8.6jan.nijtmans2018-06-251-3/+3
| |\ \ | | |/
| | * Simplify ToUtf(), expecially for TCL_UTF_MAX>3 (with correct surrogate ↵jan.nijtmans2018-06-251-3/+3
| | | | | | | | | | | | | | | handling). Fix various typo's
* | | close forkdgp2018-06-121-15/+17
|\ \ \
| * \ \ merge 8.7jan.nijtmans2018-05-271-15/+17
| |\ \ \ | | |/ /
| | * | Unbreak build with other CFLAGS, such as TCL_MEM_DEBUG=1 or TCL_THREADS=0 on ↵jan.nijtmans2018-05-231-2/+4
| | | | | | | | | | | | | | | | Linux
| | * | Simplify usage of TCL_THREAD, along the lines of ↵jan.nijtmans2018-05-221-14/+14
| | | | | | | | | | | | | | | | [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
| | * | TIP #491 implementation: Threading Support: phasing out non-threaded buildsjan.nijtmans2018-05-171-14/+14
| | |\ \
* | | | | Removed thread-specific mutex lock counter and replaced by shared counter + ↵fbonnet2018-06-091-11/+13
|/ / / / | | | | | | | | | | | | thread ID for systems without PTHREAD_MUTEX_RECURSIVE
* | | | TIP #509: Implement reentrant mutexes on all platformsfbonnet2018-05-251-23/+133
|/ / /
* | | merge 8.6jan.nijtmans2018-05-111-1/+1
|\ \ \ | | |/ | |/|
| * | merge 8.5jan.nijtmans2018-05-111-1/+1
| |\ \
| | * | Rename Tcl_Dir to TclDIR, making it clear that this macro is not part of the ↵jan.nijtmans2018-05-111-1/+1
| | | | | | | | | | | | | | | | public API
* | | | merge 8.6dgp2018-05-091-1/+1
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | merge 8.5sebres2018-05-091-1/+1
| |\ \ | | |/
| | * amend to [85bcf84100]: replaces DIR with Tcl_Dir (DIR/DIR64 regarding ↵sebres2018-05-091-1/+1
| | | | | | | | | | | | HAVE_STRUCT_DIRENT64)
* | | If Tcl is compiled with -DTCL_NO_DEPRECATED, remove a lot of (internal) stub ↵jan.nijtmans2017-11-201-0/+2
| | | | | | | | | | | | | | | | | | entries which correspond to functions which will be removed in Tcl 9. This commit should have been part of [7849f573c0e7d758|this] earlier commit. No effect when Tcl is not compiled with -DTCL_NO_DEPRECATED.
* | | Some more (internal) stub entries which can be cleaned up with ↵jan.nijtmans2017-04-061-0/+2
| | | | | | | | | | | | -DTCL_NO_DEPRECATED, because they are not used any more.
* | | Patch from Zoran Vasiljevic, fix for missing proper initialization of the ↵jan.nijtmans2017-01-131-2/+0
| | | | | | | | | | | | threaded allocator in some situations.
* | | Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread existsjan.nijtmans2016-10-111-2/+8
|\ \ \ | |/ /
| * | Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread existsjan.nijtmans2016-10-111-3/+4
| |\ \ | | |/
| | * Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread existsjan.nijtmans2016-10-111-3/+4
| | |
* | | Simplify use of "struct" keyword in many places.jan.nijtmans2016-06-301-4/+4
| | |
* | | RFE [0ef5e653ff4caf5f896ec1182e0aac38ab9a0c46|0ef5e653]: Add nsf to ↵jan.nijtmans2016-04-011-2/+2
|\ \ \ | |/ / | | | | | | coffbase.txt. Eliminate exess spacing
* | | Two micro-optimizations in Win and UNIX notifier. See: ↵jan.nijtmans2016-04-011-17/+10
|\ \ \ | | | | | | | | | | | | [http://code.activestate.com/lists/tcl-core/15645/]
| * \ \ - Undo unix notifier changes: too risky at this moment. jan.nijtmans2016-03-251-42/+10
| |\ \ \ | |/ / / |/| | | | | | | - Merge trunk - (cherry-pick from dhr-micro-optimization): Micro-optimization: remove double checked lock from TclGetAllocCache in favour of initialization in TclInitSubsystems
| * | | (experiment) Use TclpMasterLock() in stead of a separate notifierInitMutex. ↵jan.nijtmans2016-03-211-0/+25
|/ / / | | | | | | | | | One less mutex to be worried about.
* | | Fix [d3071887dbc7aeac]: Fix SEGV in Tcl_FinalizeNotifier(). Thanks to ↵jan.nijtmans2016-03-211-12/+5
|/ / | | | | | | | | | | | | hirofumi for both the bug-report and the fix. Use TclpMasterLock() in stead of MASTER_LOCK everywhere (in stead of in some files only, not in others). Use "static int initialized" variable consistantly. Fix some comments. No change of functionality.
* | Bring back Tcl_MutexLock() to exact implementation in Tcl 8.6.4. For ↵jan.nijtmans2015-10-181-49/+2
|\ \ | |/ | | | | details, see [ba44e415a0]: Use of mutexLock causes problem with reactive event handling in AndroWish
| * Bring back Tcl_MutexLock() to exact implementation in Tcl 8.5.18. For ↵jan.nijtmans2015-10-181-49/+2
| |\ | | | | | | | | | details, see [ba44e415a0]: Use of mutexLock causes problem with reactive event handling in AndroWish
| | * Proposed fix for [ba44e415a0]: "Use of mutexLock causes problem with ↵jan.nijtmans2015-10-171-46/+5
| |/ |/| | | | | | | reactive event handling in AndroWish". This basically undoes the retry mechamism in Tcl_MutexLock, introduced in [9f8b7bea53]. Does this retry mechamism hurt more than it helps? Feedback requested.
* | Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin ↵jan.nijtmans2015-09-241-56/+4
|\ \ | |/ | | | | 9f8b7bea5344f1b0 broke netbsd's thread notifier
| * Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin ↵jan.nijtmans2015-09-241-56/+4
| |\ | | | | | | | | | 9f8b7bea5344f1b0 broke netbsd's thread notifier
| | * merge trunk. jan.nijtmans2015-08-191-56/+4
| |/ |/| | | Remove now unused internal functions.
* | Fix bug [57945b574a6df0332efc4ac96b066f7c347b28f7|57945b574a]: lock in ↵jan.nijtmans2015-07-231-2/+100
|\ \ | |/ | | | | 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-6/+105
| |\ | | | | | | | | | 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.
| | * The unit for usleep() is microseconds, not milliseconds.Joe Mistachkin2015-06-081-1/+1
| | |
| | * First attempt at implementing the necessary auto-magic for usleep.Joe Mistachkin2015-05-181-8/+0
| | |