Use turnstile to implement sx_lock

2005-12-15 Thread prime
hi hackers, I want to use turnstile to implement sx_lock( or read/write lock),but find that there is a big obstacle, ONE sx_lock needs TWO queues to put waiters on,one for readers and the other one for writers,but ONE turnstile can only supply ONE queue,and ONE sx_lock can only get ONE turnstile

Re: Use turnstile to implement sx_lock

2005-12-15 Thread John Baldwin
On Thursday 15 December 2005 09:52 am, prime wrote: hi hackers, I want to use turnstile to implement sx_lock( or read/write lock),but find that there is a big obstacle, ONE sx_lock needs TWO queues to put waiters on,one for readers and the other one for writers,but ONE turnstile can only