sleep() vs sleepUntilDate
sleep() vs sleepUntilDate
- Subject: sleep() vs sleepUntilDate
- From: Dylan Neild <email@hidden>
- Date: Mon, 23 Sep 2002 00:31:01 -0400
Hi Everyone,
I was wondering what the effective, practical differences were between
using the following calls:
sleep() - of course, part of the BSD environment.
-and-
(void)sleepUntilDate:(NSDate*)aDate - class method in NSThread.
Is there any major caveats to one or the other, besides the obvious
argument differences. Effectively, what I'm wondering, is that if I use
"sleep(10)" in a thread vs. "sleepUntilDate:(NSDate *)tenSecondsAway"
(or vice versa) ... is there anything I should be aware of?
Many thanks,
Dylan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.