Bläddra i källkod

Added some FIXME comments.

Ryan C. Gordon 19 år sedan
förälder
incheckning
4396d7b3ba
2 ändrade filer med 10 tillägg och 0 borttagningar
  1. 5 0
      platform/pocketpc.c
  2. 5 0
      platform/windows.c

+ 5 - 0
platform/pocketpc.c

@@ -561,6 +561,11 @@ int __PHYSFS_platformDelete(const char *path)
 } /* __PHYSFS_platformDelete */
 
 
+/*
+ * !!! FIXME: why aren't we using Critical Sections instead of Mutexes?
+ * !!! FIXME:  mutexes on Windows are for cross-process sync. CritSects are
+ * !!! FIXME:  mutexes for threads in a single process and are faster.
+ */
 void *__PHYSFS_platformCreateMutex(void)
 {
     return((void *) CreateMutex(NULL, FALSE, NULL));

+ 5 - 0
platform/windows.c

@@ -903,6 +903,11 @@ int __PHYSFS_platformDelete(const char *path)
 } /* __PHYSFS_platformDelete */
 
 
+/*
+ * !!! FIXME: why aren't we using Critical Sections instead of Mutexes?
+ * !!! FIXME:  mutexes on Windows are for cross-process sync. CritSects are
+ * !!! FIXME:  mutexes for threads in a single process and are faster.
+ */
 void *__PHYSFS_platformCreateMutex(void)
 {
     return((void *) CreateMutex(NULL, FALSE, NULL));