Skip to content

Commit

Permalink
Changed timeslice implementation to use something more portable (than…
Browse files Browse the repository at this point in the history
…ks to

 Patrick Stein and his Darwin work for this one).
  • Loading branch information
icculus committed Mar 5, 2002
1 parent dd001ed commit 734b665
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platform/unix.c
Expand Up @@ -309,10 +309,7 @@ char *__PHYSFS_platformCvtToDependent(const char *prepend,
/* Much like my college days, try to sleep for 10 milliseconds at a time... */
void __PHYSFS_platformTimeslice(void)
{
struct timespec napTime;
napTime.tv_sec = 0;
napTime.tv_nsec = 10 * 1000 * 1000; /* specified in nanoseconds. */
nanosleep(&napTime, NULL); /* don't care if it fails. */
usleep( 10 * 1000 ); /* don't care if it fails. */
} /* __PHYSFS_platformTimeslice */


Expand Down

0 comments on commit 734b665

Please sign in to comment.