|
2015-10-18
| ||
| 10:53 | • Closed ticket [ba44e415a0]: Use of mutexLock causes problem with reactive event ... artifact: 9b5e12f1f2 user: jan.nijtmans | |
| 10:34 | Bring back Tcl_MutexLock() to exact implementation in Tcl 8.6.4. For details, see [ba44e415a0]: Use ... check-in: ebfd1b23cb user: jan.nijtmans tags: trunk | |
| 10:31 | Bring back Tcl_MutexLock() to exact implementation in Tcl 8.5.18. For details, see [ba44e415a0]: Use... check-in: 6c765efe9d user: jan.nijtmans tags: core-8-5-branch | |
|
2015-10-17
| ||
| 07:21 | Proposed fix for [ba44e415a0]: "Use of mutexLock causes problem with reactive event handling in Andr... closed check-in: 934cfb547e user: jan.nijtmans tags: bug-ba44e415a0 | |
| 07:16 | • New ticket [ba44e415a0] Use of mutexLock causes problem with reactive event hand... artifact: 50d8fa5198 user: jan.nijtmans | |
Use of mutexLock causes problem with reactive event handling in AndroWish
Closed / Fixedba44e415a03f6a381eba30802147b666e3742585Created 11 years agoUpdated 11 years ago
Descriptionwiki2015-10-17 07:16:36
Reported by Christian Werner.
The retry mechanism in Tcl_MutexLock introduced here has undesired effects on AndroWish.
This effectively kills reactive event handling in AndroWish and can be observed best when the accelerometer sensors are to be transformed into some canvas changes. This always delays the contention case of Tcl_MutexLock() and reverses the pthread_mutex_t semantic completely. No idea however how it behaves on other platforms but in AndroWish there's always concurrency in SDL events vs. rendering since some parts of rendering (Xlib drawing calls) are carried out in the Tcl thread, some other parts in the background event handling and screen refresh thread.
Referenced by3
ebfd1b23cbBring back Tcl_MutexLock() to exact implementation in Tcl 8.6.4. For details, see [ba44e415a0]: Use of mutexLock causes problem with reactive event handling in AndroWish check-in2015-10-18 10:34:306c765efe9dBring back Tcl_MutexLock() to exact implementation in Tcl 8.5.18. For details, see [ba44e415a0]: Use of mutexLock causes problem with reactive event handling in AndroWish check-in2015-10-18 10:31:50934cfb547eProposed fix for [ba44e415a0]: "Use of mutexLock causes problem with 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. check-in2015-10-17 07:21:19
jan.nijtmansplain2015-10-18 10:53:55
It turns out (confirmed by Alexander Ferrieux and Gustaf Neumann) that this retry mechanism was needed to resolve a possible (unlikely) deadlock problem in the earlier notifier modifications. But the new notifier (from Gustaf) doesn't have this deadlock problem any more, so the retry mechanism is no longer needed. Therefore it should have been removed. Done now.
Log in (anonymous is fine) to add a comment.