K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-02-27T17:45:55.000000Z K 7 svn:log V 346 Change the spin lock logic to a reasonable one. We should spin when the lock is held by other thread, but not when nobody owns it. According to deischen@, this part of code will never be hit in our threads library, since it does not use locks without wait/wakeup functions. Spotted by: mingyanguo via ChinaUnix.net forum Reviewed by: deischen END