Ryan C. Gordon 19 лет назад
Родитель
Сommit
4396d7b3ba
2 измененных файлов с 10 добавлено и 0 удалено
  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));