Tcl Source Code

View Ticket
Login
Ticket UUID: 218577
Title: Tcl_MutexLock doesn't work properly
Type: Bug Created on: 2000-10-26 01:02:39
Submitter: nobody Assigned to: nobody
Subsystem: 49. Threading Severity:
Priority: 2 Last modified: 2001-04-17 04:55:24
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2001-04-16 21:55:24
Version: obsolete: 8.1b1
Description:
OriginalBugID: 1275 Bug
Version: 8.1b1
SubmitDate: '1999-02-23'
LastModified: '1999-03-25'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: stanton
OS: Windows NT
OSVersion: 4.0 SP3
Machine: X86
FixedDate: '1999-03-25'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'


Name:
Andreas Weigl-Pollack

Extensions:
TestThread.tcl

ReproducibleScript:
Tcl_MutexLock(&threadMutex);
Tcl_MutexLock(&threadMutex);




DesiredBehavior:
According to the manual a thread should deadlock on itself if it tries
to lock the mutex twice. This isn't true. Two calls of
Tcl_MutexLock(&threadMutex) don't  cause a deadlock.





The result varies depending on platform.  The result should be identical, and the docs should reflect this.  03/24/1999 14:43 - surles -

It will be simpler to document that the recursive behavior of Tcl mutexes is undefined.  People shouldn't be relying on the recursive behavior in any case.
03/25/1999 11:35 - stanton -