Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-17
04:55 • Ticket [218577ffff] Tcl_MutexLock doesn't work properly status still Clo... artifact: c4560c33b4 user: dgp
2000-10-26
08:25 • Closed ticket [218577ffff]. artifact: 932095a00a user: welch
01:02 • New ticket [218577ffff]. artifact: 0045cc3eaa user: nobody

Tcl_MutexLock doesn't work properly

Closed / Fixed218577ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:02:39
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 -
welch Closed ticket [218577ffff]. [History diff]2000-10-26 08:25:08
dgp Ticket [218577ffff]: 3 changes [History diff]2001-04-17 04:55:24
Log in (anonymous is fine) to add a comment.