|
From: | Richard Frith-Macdonald |
Subject: | Poor lockBeforeDate: implementation |
Date: | Thu, 17 Jul 2003 15:54:10 +0100 |
Does anyone know if this is actually true for the architectures we actually support? I'd like to rewrite this code to use [NSThread+sleepUntilDate:] (which I have just updated to use nanosleep() if availalble) to start sleeping for very small intervals, (perhaps starting with a millisecond) increasing up to a maximum of 1 second intervals. That should make a big increase in responsiveness of applications using lockBeforeDate: ... but I don't want to do it if it will break things because the sleep mechanism used is not thread safe in some way.
[Prev in Thread] | Current Thread | [Next in Thread] |