summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
Commit message (Collapse)AuthorAgeFilesLines
* minor comment fixjan.nijtmans2011-04-281-1/+1
|\
| * minor comment fixjan.nijtmans2011-04-281-1/+1
| |\
| | * minor comment fixjan.nijtmans2011-04-281-1/+1
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-5/+6
| | | | | | | | | 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.
| | * * unix/tclUnixThrd.c (Tcl_JoinThread): fix for 64-bit handling ofhobbs2007-05-291-1/+5
| | | | | | | | | | | | pthread_join exit return code storage. [Bug 1712723]
| | * * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-1/+1
| | |
| | * * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-3/+3
| | |
| | * * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-6/+2
| | |
| | * * unix/tcl.m4, unix/configure: Backported [Bug 1095909], removinghobbs2005-07-081-47/+5
| | | | | | | | | | | | | | | * unix/tclUnixPort.h: any use of readdir_r as it is not * unix/tclUnixThrd.c: necessary and just confuses things.
| | * Fixed TclpFreeAllocCache() to recognize when being calledvasiljevic2005-04-071-7/+10
| | | | | | | | | | | | | | | | | | with NULL argument. This is a signal for it to clean up the tsd key associated with the threading allocator. Part of fixing the Tcl Bug #1178445.
| | * * unix/configure: Regen.mdejong2004-11-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/tcl.m4 (SC_ENABLE_THREADS): Check for a 2 argument version of readdir_r that is known to exists under IRIX 5.3. * unix/tclUnixThrd.c (TclpReaddir): Use either 2 arg or 3 arg version of readdir_r. [Bug 1001325]
| | * * generic/tclAlloc.c: Fixed [Tcl SF Bug 1030548], aandreas_kupries2004-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | * generic/tclThreadAlloc.c: threaded debug build on Windows * win/tclWinThrd.c: now works again. Had to touch Unix * unix/tclUnixThrd.c: as well. Basic patch by Kevin, with modifications by myself.
| | * Changed handling of the returned thread ID since broken on 64-bitvasiljevic2004-08-101-2/+4
| | | | | | | | | | | | systems (Cray). Thanks to Rob Ratcliff for reporting the bug.
| | * * generic/tclEvent.c: Correct threaded obj allocator tohobbs2004-07-211-12/+34
| | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: fully cleanup on exit and allow for * generic/tclThreadAlloc.c: reinitialization. [Bug #736426] * unix/tclUnixThrd.c: (mistachkin, kenny) * win/tclWinThrd.c:
| | * * unix/tclUnixThrd.c (TclpFinalizeMutex): Accepted Joeandreas_kupries2004-07-151-0/+1
| | | | | | | | | | | | | | | Mistachkin's patch for [Tcl SF Bug 99453], closing leakage of mutexes. They were not destroyed properly upon finalization.
| | * Corrected Tcl Bug #770053vasiljevic2004-06-221-2/+2
| | |
| | * 2004-05-14 Kevin B. Kenny <kennykb@acm.org> Kevin B Kenny2004-05-141-47/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h: * generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848] * unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong. * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848] * tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately. * win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls.
| | * * generic/tclInt.h:davygrvy2004-05-061-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclThread.c: * generic/tclEvent.c: * unix/tclUnixThrd.c: * win/tclWinThrd.c: Provisions made so masterLock, initLock, allocLock and joinLock mutexes can be recovered during Tcl_Finalize.
| | * fix for [Bug 732477]Joe Mistachkin2003-05-131-6/+6
| | |
| | * Corrected the Tcl bug #723502vasiljevic2003-05-121-1/+1
| | |
* | | Simplify Tcl_AppInit and *_Init definitions.nijtmans2010-06-161-2/+2
| | | | | | | | | | | | | | | | | | Change TclpThreadCreate and Tcl_CreateThread signature, making clear that "proc" is a function pointer, as in all other "proc" function parameters.
* | | Code Audit results:dkf2010-03-051-25/+38
| | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations
* | | const addition (pkge.c)nijtmans2009-08-161-2/+2
| | | | | | | | | | | | | | | Use <pthread.h> in stead of "pthread.h" Eliminate some more gcc warnings
* | | * unix/tclUnixThrd.c: remove unused TclpThreadGetStackSize()das2008-08-131-94/+1
| | | | | | | | | | | | | | | | | | * generic/tclInt.h: and related ifdefs and autoconf tests. * unix/tclUnixPort.h: [Bug 2017264] (jenglish) * unix/tcl.m4:
* | | CONSTified 4 functions in the Notifier which all have a Tcl_Time* in it which isnijtmans2008-07-241-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | supposed to be a constant, but this was not reflected in the API: Tcl_SetTimer Tcl_WaitForEvent Tcl_ConditionWait Tcl_SetMaxBlockTime Introduced a CONST86, so extensions which have their own Notifier (are there any?) can be modified to compile against both Tcl 8.5 and Tcl 8.6. This change complies with TIP #24
* | | * generic/tcl.h: Make Tcl_ThreadDataKey a void *.georgeps2008-05-091-1/+44
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Change around some function names and add some new per-platform declarations for thread-specific data functions. * generic/tclThread.c: Make use of of the new function names that no longer have a Tclp prefix. * generic/tclThreadStorage.c: Replace the core thread-specific data (TSD) mechanism with an array offset solution that eliminates the hash tables, and only uses one slot of native TSD. Many thanks to Kevin B. Kenny for his help with this. * unix/tclUnixThrd.c: Add platform-specific TSD functions for use by tclThreadStorage.c. * win/tclWinThrd.c: Add platform-specific TSD functions for use by tclThreadStorage.c.
* | * unix/tclUnixThrd.c (TclpThreadGetStackSize): restore stackMiguel Sofer2008-01-111-8/+11
| | | | | | | | checking functionality in freebsd [Bug 1850424]
* | * unix/tclUnixThrd.c (TclpThreadGetStackSize): fix for crash inMiguel Sofer2008-01-111-7/+4
| | | | | | | | freebsd [Bug 1860425].
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclBasic.c:Miguel Sofer2007-11-261-10/+47
| | | | | | | | | | | | | | | | | | * generic/tclInt.h: * unix/tclUnixInit.c: * unix/tclUnixThrd.c: Fix stack checking via workaround for bug in glibc's pthread_attr_get_np, patch from [Bug 1815573]. Many thanks to Sergei Golovan (aka Teo) for detecting the bug and helping diagnose and develop the fix.
* | Silence some warnings.dkf2007-11-161-5/+5
| |
* | * unix/tclUnixThrd.c (Tcl_JoinThread): fix for 64-bit handling ofhobbs2007-05-291-3/+7
| | | | | | | | pthread_join exit return code storage. [Bug 1712723]
* | supply missing RCS linedgp2006-12-191-1/+1
| |
* | Fix [Bug 1618838]dkf2006-12-191-2/+5
| |
* | * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-1/+1
| |
* | * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-3/+3
| |
* | * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.das2006-12-191-7/+3
| |
* | * generic/tclCompExpr.c: fix gcc warnings about 'cast to/fromdas2006-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEncoding.c: pointer from/to integer of different * generic/tclEvent.c: size' on 64-bit platforms by casting to * generic/tclExecute.c: intermediate types intptr_t/uintptr_t * generic/tclHash.c: via new PTR2INT(), INT2PTR(), * generic/tclIO.c: PTR2UINT() and UINT2PTR() macros. * generic/tclInt.h: [Patch 1592791] * generic/tclProc.c: * generic/tclTest.c: * generic/tclThreadStorage.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/configure.in: * unix/tclUnixChan.c: * unix/tclUnixPipe.c: * unix/tclUnixPort.h: * unix/tclUnixTest.c: * unix/tclUnixThrd.c: * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* | * unix/tclUnixThrd.c (TclpThreadGetStackSize): Darwin: fix for maindas2006-10-161-5/+10
| | | | | | | | | | | | thread, where pthread_get_stacksize_np() returns incorrect info. * macosx/GNUmakefile: don't redo prebinding of non-prebound binaires.
* | * unix/tclUnixThrd.c (TclpThreadGetStackSize): on Darwin, usedas2006-10-131-0/+2
| | | | | | | | | | | | * unix/tcl.m4: pthread_get_stacksize_np() API to get thread stack size. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* | Fix for stack.test failures on FreeBSDJoe Mistachkin2006-08-291-1/+1
| |
* | ANSIfydkf2005-11-021-55/+55
| |
* | radical refactoring of thread storage to untangle dependenciesKevin B Kenny2005-08-111-168/+0
| |
* | Getting more systematic about styledkf2005-07-201-125/+136
| |
* | Fixed TclpFreeAllocCache() to recognize when being called with NULLvasiljevic2005-04-161-7/+10
| | | | | | | | | | argument. This is a signal for it to clean up the tsd key associated with the threading allocator.
* | Comment typo fixdkf2005-01-111-1/+1
| |
* | Remove readdir_r() and related #ifdeffery (see #1095909).jenglish2005-01-091-47/+5
| | | | | | | | Don't check for HAVE_READDIR_R. Regenerated configure script.