Removed __PHYSFS_platformTimeslice()...we don't actually use this anymore.
This commit is contained in:
parent
7703202ee5
commit
bb1d757244
|
@ -1612,13 +1612,6 @@ char *__PHYSFS_platformCvtToDependent(const char *prepend,
|
||||||
const char *append);
|
const char *append);
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Make the current thread give up a timeslice. This is called in a loop
|
|
||||||
* while waiting for various external forces to get back to us.
|
|
||||||
*/
|
|
||||||
void __PHYSFS_platformTimeslice(void);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enumerate a directory of files. This follows the rules for the
|
* Enumerate a directory of files. This follows the rules for the
|
||||||
* PHYSFS_Archiver->enumerateFiles() method (see above), except that the
|
* PHYSFS_Archiver->enumerateFiles() method (see above), except that the
|
||||||
|
|
|
@ -189,13 +189,6 @@ PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
|
||||||
} /* __PHYSFS_platformGetThreadID */
|
} /* __PHYSFS_platformGetThreadID */
|
||||||
|
|
||||||
|
|
||||||
/* Much like my college days, try to sleep for 10 milliseconds at a time... */
|
|
||||||
void __PHYSFS_platformTimeslice(void)
|
|
||||||
{
|
|
||||||
snooze(10000); /* put thread to sleep for 10 milliseconds. */
|
|
||||||
} /* __PHYSFS_platformTimeslice */
|
|
||||||
|
|
||||||
|
|
||||||
char *__PHYSFS_platformRealPath(const char *path)
|
char *__PHYSFS_platformRealPath(const char *path)
|
||||||
{
|
{
|
||||||
BPath normalized(path, NULL, true); /* force normalization of path. */
|
BPath normalized(path, NULL, true); /* force normalization of path. */
|
||||||
|
|
|
@ -649,13 +649,6 @@ PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
|
||||||
} /* __PHYSFS_platformGetLastModTime */
|
} /* __PHYSFS_platformGetLastModTime */
|
||||||
|
|
||||||
|
|
||||||
/* Much like my college days, try to sleep for 10 milliseconds at a time... */
|
|
||||||
void __PHYSFS_platformTimeslice(void)
|
|
||||||
{
|
|
||||||
DosSleep(10);
|
|
||||||
} /* __PHYSFS_platformTimeslice(void) */
|
|
||||||
|
|
||||||
|
|
||||||
PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
|
PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
|
||||||
{
|
{
|
||||||
PTIB ptib;
|
PTIB ptib;
|
||||||
|
|
|
@ -225,12 +225,6 @@ char *__PHYSFS_platformCvtToDependent(const char *prepend,
|
||||||
} /* __PHYSFS_platformCvtToDependent */
|
} /* __PHYSFS_platformCvtToDependent */
|
||||||
|
|
||||||
|
|
||||||
void __PHYSFS_platformTimeslice(void)
|
|
||||||
{
|
|
||||||
Sleep(10);
|
|
||||||
} /* __PHYSFS_platformTimeslice */
|
|
||||||
|
|
||||||
|
|
||||||
static int doEnumCallback(const wchar_t *w_fname)
|
static int doEnumCallback(const wchar_t *w_fname)
|
||||||
{
|
{
|
||||||
const PHYSFS_uint64 len = (PHYSFS_uint64) ((wcslen(w_fname) * 4) + 1);
|
const PHYSFS_uint64 len = (PHYSFS_uint64) ((wcslen(w_fname) * 4) + 1);
|
||||||
|
|
|
@ -350,13 +350,6 @@ char *__PHYSFS_platformCalcBaseDir(const char *argv0)
|
||||||
} /* __PHYSFS_platformCalcBaseDir */
|
} /* __PHYSFS_platformCalcBaseDir */
|
||||||
|
|
||||||
|
|
||||||
/* Much like my college days, try to sleep for 10 milliseconds at a time... */
|
|
||||||
void __PHYSFS_platformTimeslice(void)
|
|
||||||
{
|
|
||||||
usleep( 10 * 1000 ); /* don't care if it fails. */
|
|
||||||
} /* __PHYSFS_platformTimeslice */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef PHYSFS_PLATFORM_MACOSX
|
#ifdef PHYSFS_PLATFORM_MACOSX
|
||||||
/*
|
/*
|
||||||
* This function is only for OSX. The problem is that Apple's applications
|
* This function is only for OSX. The problem is that Apple's applications
|
||||||
|
|
|
@ -378,13 +378,6 @@ char *__PHYSFS_platformCvtToDependent(const char *prepend,
|
||||||
} /* __PHYSFS_platformCvtToDependent */
|
} /* __PHYSFS_platformCvtToDependent */
|
||||||
|
|
||||||
|
|
||||||
/* Much like my college days, try to sleep for 10 milliseconds at a time... */
|
|
||||||
void __PHYSFS_platformTimeslice(void)
|
|
||||||
{
|
|
||||||
Sleep(10);
|
|
||||||
} /* __PHYSFS_platformTimeslice */
|
|
||||||
|
|
||||||
|
|
||||||
void __PHYSFS_platformEnumerateFiles(const char *dirname,
|
void __PHYSFS_platformEnumerateFiles(const char *dirname,
|
||||||
int omitSymLinks,
|
int omitSymLinks,
|
||||||
PHYSFS_EnumFilesCallback callback,
|
PHYSFS_EnumFilesCallback callback,
|
||||||
|
|
Loading…
Reference in New Issue