Changes by: Aleksey Nogin (nogin at metaprl.org)
Date: 2007-07-19 12:19:39 -0700 (Thu, 19 Jul 2007)
Revision: 11356
Log message:
Trying to debug the deadlocks I am seeing on Windows when -p is enabled. What I am seeing is that the worker threads are being created, but they never start (even the child part of the Lm_thread.create_thread is never executed). I have no idea how the -p causes this...
In this commit I:
- Added a lot of thread-related debugging code
- Made the -debug-thread command-line option also activate Lm_thread.debug_lock and Lm_thread_code.debug_mutex (the latter variable is new).
- Changed the Lm_thread_core_null so that Lm_thread.Mutex.try_lock would return a value consisntent with the real thread implementation.