Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix [Bug 1618838] |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4cba13e3368e25bc0a3c645e47c74d34 |
| User & Date: | dkf 2006-12-19 16:14:40.000 |
Context
|
2006-12-19
| ||
| 16:25 | supply missing RCS line check-in: ea6501a730 user: dgp tags: trunk | |
| 16:14 | Fix [Bug 1618838] check-in: 4cba13e336 user: dkf tags: trunk | |
| 14:22 | Rewrote for more clarity check-in: 19140032df user: dkf tags: trunk | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2006-12-19 Daniel Steffen <das@users.sourceforge.net> * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit. * unix/tcl.m4 (Darwin): --enable-64bit: verify linking with 64bit -arch flag succeeds before enabling 64bit build. * unix/configure: autoconf-2.59 | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 | 2006-12-19 Donal K. Fellows <donal.k.fellows@man.ac.uk> * unix/tclUnixThrd.c (Tcl_GetAllocMutex, TclpNewAllocMutex): Add intermediate variables to shut up unwanted warnings. [Bug 1618838] 2006-12-19 Daniel Steffen <das@users.sourceforge.net> * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit. * unix/tcl.m4 (Darwin): --enable-64bit: verify linking with 64bit -arch flag succeeds before enabling 64bit build. * unix/configure: autoconf-2.59 |
| ︙ | ︙ |
Changes to unix/tclUnixThrd.c.
| ︙ | ︙ | |||
436 437 438 439 440 441 442 |
*----------------------------------------------------------------------
*/
Tcl_Mutex *
Tcl_GetAllocMutex(void)
{
#ifdef TCL_THREADS
| > | | 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 |
*----------------------------------------------------------------------
*/
Tcl_Mutex *
Tcl_GetAllocMutex(void)
{
#ifdef TCL_THREADS
pthread_mutex_t **allocLockPtrPtr = &allocLockPtr;
return (Tcl_Mutex *) allocLockPtrPtr;
#else
return NULL;
#endif
}
#ifdef TCL_THREADS
|
| ︙ | ︙ | |||
738 739 740 741 742 743 744 745 746 747 748 749 |
pthread_mutex_t plock;
} allocMutex;
Tcl_Mutex *
TclpNewAllocMutex(void)
{
struct allocMutex *lockPtr;
lockPtr = malloc(sizeof(struct allocMutex));
if (lockPtr == NULL) {
Tcl_Panic("could not allocate lock");
}
| > > | | 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 |
pthread_mutex_t plock;
} allocMutex;
Tcl_Mutex *
TclpNewAllocMutex(void)
{
struct allocMutex *lockPtr;
register pthread_mutex_t *plockPtr;
lockPtr = malloc(sizeof(struct allocMutex));
if (lockPtr == NULL) {
Tcl_Panic("could not allocate lock");
}
plockPtr = &lockPtr->plock;
lockPtr->tlock = (Tcl_Mutex) plockPtr;
pthread_mutex_init(&lockPtr->plock, NULL);
return &lockPtr->tlock;
}
void
TclpFreeAllocMutex(
Tcl_Mutex *mutex) /* The alloc mutex to free. */
|
| ︙ | ︙ |