r856 - in trunk: . platform
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Mar 20 13:57:45 EDT 2007
Author: icculus
Date: 2007-03-20 13:57:45 -0400 (Tue, 20 Mar 2007)
New Revision: 856
Modified:
trunk/physfs_internal.h
trunk/platform/beos.cpp
trunk/platform/os2.c
trunk/platform/pocketpc.c
trunk/platform/unix.c
trunk/platform/windows.c
Log:
Removed __PHYSFS_platformTimeslice()...we don't actually use this anymore.
Modified: trunk/physfs_internal.h
===================================================================
--- trunk/physfs_internal.h 2007-03-20 17:53:42 UTC (rev 855)
+++ trunk/physfs_internal.h 2007-03-20 17:57:45 UTC (rev 856)
@@ -1613,13 +1613,6 @@
/*
- * 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
* PHYSFS_Archiver->enumerateFiles() method (see above), except that the
* (dirName) that is passed to this function is converted to
Modified: trunk/platform/beos.cpp
===================================================================
--- trunk/platform/beos.cpp 2007-03-20 17:53:42 UTC (rev 855)
+++ trunk/platform/beos.cpp 2007-03-20 17:57:45 UTC (rev 856)
@@ -189,13 +189,6 @@
} /* __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)
{
BPath normalized(path, NULL, true); /* force normalization of path. */
Modified: trunk/platform/os2.c
===================================================================
--- trunk/platform/os2.c 2007-03-20 17:53:42 UTC (rev 855)
+++ trunk/platform/os2.c 2007-03-20 17:57:45 UTC (rev 856)
@@ -649,13 +649,6 @@
} /* __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)
{
PTIB ptib;
Modified: trunk/platform/pocketpc.c
===================================================================
--- trunk/platform/pocketpc.c 2007-03-20 17:53:42 UTC (rev 855)
+++ trunk/platform/pocketpc.c 2007-03-20 17:57:45 UTC (rev 856)
@@ -225,12 +225,6 @@
} /* __PHYSFS_platformCvtToDependent */
-void __PHYSFS_platformTimeslice(void)
-{
- Sleep(10);
-} /* __PHYSFS_platformTimeslice */
-
-
static int doEnumCallback(const wchar_t *w_fname)
{
const PHYSFS_uint64 len = (PHYSFS_uint64) ((wcslen(w_fname) * 4) + 1);
Modified: trunk/platform/unix.c
===================================================================
--- trunk/platform/unix.c 2007-03-20 17:53:42 UTC (rev 855)
+++ trunk/platform/unix.c 2007-03-20 17:57:45 UTC (rev 856)
@@ -350,13 +350,6 @@
} /* __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
/*
* This function is only for OSX. The problem is that Apple's applications
Modified: trunk/platform/windows.c
===================================================================
--- trunk/platform/windows.c 2007-03-20 17:53:42 UTC (rev 855)
+++ trunk/platform/windows.c 2007-03-20 17:57:45 UTC (rev 856)
@@ -378,13 +378,6 @@
} /* __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,
int omitSymLinks,
PHYSFS_EnumFilesCallback callback,
More information about the physfs-commits
mailing list