[issue11408] python locks: blocking acquire calls useless gettimeofday

2011-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pushed in 6ba9ba58499e, thank you. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker _

[issue11408] python locks: blocking acquire calls useless gettimeofday

2011-03-05 Thread Charles-Francois Natali
New submission from Charles-Francois Natali : While tracing a program using multiprocessing queues, I noticed that there were many calls to gettimeofday. It turns out that acquire_timed, used by lock_PyThread_acquire_lock and rlock_acquire, always call gettimeofday, even if no timeout argument