mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
299fac65f5
commit
1567ea4084
3 changed files with 8 additions and 3 deletions
|
@ -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. */
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue