Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 50d8fa519836c7191606bc0050183cfc1d31a57d
Ticket: ba44e415a03f6a381eba30802147b666e3742585
Use of mutexLock causes problem with reactive event handling in AndroWish
User & Date: jan.nijtmans on 2015-10-17 07:16:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed 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.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "02. Event Loops"
  14. title changed to:
    Use of mutexLock causes problem with reactive event handling in AndroWish
    
  15. type changed to: "Bug"