NSThread bugfix in sleeping

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3591 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-01-26 09:00:20 +00:00
parent 0064498ae5
commit 3a8be51077
3 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Tue Jan 26 8:15:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* src/NSThread.m: ([-sleepUntilDate:]) cast argument of usleep() to
be integer rather than float - suggested by stark@easynet.fr
Sun Jan 24 8:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* src/NSConnection.m: Preliminary work for handling DO between

View file

@ -1575,7 +1575,7 @@ static int messages_received_count;
/* xxx We should make sure that TARGET is a valid object. */
/* Not actually a Proxy, but we avoid the warnings "id" would have made. */
m = class_get_instance_method((o)->isa, sel);
m = class_get_instance_method(((NSDistantObject*)o)->isa, sel);
/* Perhaps I need to be more careful in the line above to get the
version of the method types that has the type qualifiers in it.
Search the protocols list. */

View file

@ -196,9 +196,9 @@ void gnustep_base_thread_callback()
while (delay > 0)
{
#ifdef HAVE_USLEEP
usleep (delay*1000000);
usleep ((int)(delay*1000000));
#else
sleep (delay);
sleep ((int)delay);
#endif
delay = [date timeIntervalSinceNow];
}