Puzzled about turnstile's lock

2005-12-17 Thread prime
Hi hackers, I want to understand the current implementation of turnstile,and meet some questions about its locks' logicality. turnstile's ``ts_blocked field is protected by both ``td_contested lock and its turnstile_chain lock, but I think its turnstile_chain lock is enough,because we allways get

Re: Puzzled about turnstile's lock

2005-12-17 Thread rookie
Hi hackers, I want to understand the current implementation of turnstile,and meet some questions about its locks' logicality. [snip] It's used to lock td_contested member of struct thread structure and all issues linked to it (as you can see in the source tree). It seems used in a clean way.

Re: Puzzled about turnstile's lock

2005-12-17 Thread prime
On 12/18/05, rookie [EMAIL PROTECTED] wrote: Hi hackers, I want to understand the current implementation of turnstile,and meet some questions about its locks' logicality. [snip] It's used to lock td_contested member of struct thread structure and all issues linked to it (as you can