Artifacts Associated With Ticket ba44e415a0
Ticket change [50d8fa5198] (rid 143532) by jan.nijtmans on 2015-10-17 07:16:36:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
Reported by Christian Werner. The retry mechanism in Tcl_MutexLock introduced [http://core.tcl.tk/tcl/vdiff?from=41d3e42ddaf7d287c0eef334aa396e2bbe3b19ee&to=9f8b7bea5344f1b0746587d660c81fa4f7109f00&sbs=1|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.
- foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "jan.nijtmans"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "jan.nijtmans"
- subsystem initialized to: "02. Event Loops"
- title initialized to:
Use of mutexLock causes problem with reactive event handling in AndroWish
- type initialized to: "Bug"
Ticket change [9b5e12f1f2] (rid 143538) by jan.nijtmans on 2015-10-18 10:53:55:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2457313.95411023"
- closer changed to: "jan.nijtmans"
- icomment:
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.
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"