mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
HighResolutionTimer: Switch to an improved generic timer for most platforms
This commit is contained in:
parent
407720b557
commit
2e93071f7a
51 changed files with 136 additions and 844 deletions
|
|
@ -4,6 +4,25 @@ JUCE breaking changes
|
|||
develop
|
||||
=======
|
||||
|
||||
Change
|
||||
------
|
||||
Thread::wait and WaitableEvent::wait now take a double rather than an int to
|
||||
indicate the number of milliseconds to wait.
|
||||
|
||||
Possible Issues
|
||||
---------------
|
||||
Calls to either wait function may trigger warnings.
|
||||
|
||||
Workaround
|
||||
----------
|
||||
Explicitly cast the value to double.
|
||||
|
||||
Rationale
|
||||
---------
|
||||
Changing to double allows sub-millisecond waits which was important for
|
||||
supporting changes to the HighResolutionTimer.
|
||||
|
||||
|
||||
Change
|
||||
------
|
||||
RealtimeOptions member workDurationMs was replaced by three optional member
|
||||
|
|
|
|||
|
|
@ -1059,12 +1059,10 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -1077,8 +1075,6 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
@ -3120,12 +3116,10 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -3138,8 +3132,6 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
|
|||
|
|
@ -1346,9 +1346,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1382,9 +1379,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3355,7 +3349,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1960,9 +1960,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -2002,12 +1999,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -5283,9 +5274,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1346,9 +1346,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1382,9 +1379,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3355,7 +3349,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1960,9 +1960,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -2002,12 +1999,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -5283,9 +5274,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1346,9 +1346,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1382,9 +1379,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3355,7 +3349,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1960,9 +1960,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -2002,12 +1999,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -5283,9 +5274,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -935,12 +935,10 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -953,8 +951,6 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
@ -2694,12 +2690,10 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -2712,8 +2706,6 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
|
|||
|
|
@ -1186,9 +1186,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1222,9 +1219,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -2908,7 +2902,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1669,9 +1669,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1711,12 +1708,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4560,9 +4551,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -968,12 +968,10 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -986,8 +984,6 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
@ -2882,12 +2878,10 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -2900,8 +2894,6 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
|
|||
|
|
@ -1194,9 +1194,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1230,9 +1227,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3091,7 +3085,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1744,9 +1744,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1786,12 +1783,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4839,9 +4830,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1194,9 +1194,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1230,9 +1227,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3091,7 +3085,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1744,9 +1744,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1786,12 +1783,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4839,9 +4830,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1194,9 +1194,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1230,9 +1227,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3091,7 +3085,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1744,9 +1744,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1786,12 +1783,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4839,9 +4830,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -256,9 +256,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -292,9 +289,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -553,7 +547,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -193,9 +193,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -235,12 +232,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -651,9 +642,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -939,12 +939,10 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -957,8 +955,6 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
@ -2778,12 +2774,10 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_CFHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_CommonFile_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ComSmartPtr_windows.h"
|
||||
"../../../../../modules/juce_core/native/juce_FileDescriptor_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_Files_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_Files_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_HighResolutionTimerThread.h"
|
||||
"../../../../../modules/juce_core/native/juce_IPAddress_posix.h"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_JNIHelpers_android.h"
|
||||
|
|
@ -2796,8 +2790,6 @@ set_source_files_properties(
|
|||
"../../../../../modules/juce_core/native/juce_Network_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_ObjCHelpers_mac.h"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_generic.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_linux.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_mac.mm"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimer_windows.cpp"
|
||||
"../../../../../modules/juce_core/native/juce_PlatformTimerListener.h"
|
||||
"../../../../../modules/juce_core/native/juce_Registry_windows.cpp"
|
||||
|
|
|
|||
|
|
@ -1186,9 +1186,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1222,9 +1219,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -2999,7 +2993,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1699,9 +1699,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1741,12 +1738,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4701,9 +4692,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -392,9 +392,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -428,9 +425,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1846,7 +1840,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -670,9 +670,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -712,12 +709,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -2724,9 +2715,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -392,9 +392,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -428,9 +425,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1846,7 +1840,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -670,9 +670,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -712,12 +709,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -2724,9 +2715,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -392,9 +392,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -428,9 +425,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1846,7 +1840,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -670,9 +670,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -712,12 +709,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -2724,9 +2715,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1202,9 +1202,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1238,9 +1235,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3157,7 +3151,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1768,9 +1768,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1810,12 +1807,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4929,9 +4920,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1202,9 +1202,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1238,9 +1235,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3157,7 +3151,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1768,9 +1768,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1810,12 +1807,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4929,9 +4920,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1202,9 +1202,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1238,9 +1235,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -3157,7 +3151,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1768,9 +1768,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1810,12 +1807,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4929,9 +4920,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -1185,9 +1185,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -1221,9 +1218,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
@ -2975,7 +2969,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_BasicNativeHeaders.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_CFHelpers_mac.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_JNIHelpers_android.h"/>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ObjCHelpers_mac.h"/>
|
||||
|
|
|
|||
|
|
@ -1696,9 +1696,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_CommonFile_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_FileDescriptor_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_Files_android.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -1738,12 +1735,6 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_generic.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_linux.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_mac.mm">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_core\native\juce_PlatformTimer_windows.cpp">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClCompile>
|
||||
|
|
@ -4668,9 +4659,6 @@
|
|||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_ComSmartPtr_windows.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_HighResolutionTimerThread.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\..\modules\juce_core\native\juce_IPAddress_posix.h">
|
||||
<Filter>JUCE Modules\juce_core\native</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -188,7 +188,6 @@
|
|||
#include "files/juce_WildcardFileFilter.cpp"
|
||||
#include "native/juce_ThreadPriorities_native.h"
|
||||
#include "native/juce_PlatformTimerListener.h"
|
||||
#include "native/juce_HighResolutionTimerThread.h"
|
||||
|
||||
//==============================================================================
|
||||
#if ! JUCE_WINDOWS
|
||||
|
|
@ -207,7 +206,7 @@
|
|||
#include "native/juce_SharedCode_intel.h"
|
||||
#include "native/juce_SystemStats_mac.mm"
|
||||
#include "native/juce_Threads_mac.mm"
|
||||
#include "native/juce_PlatformTimer_mac.mm"
|
||||
#include "native/juce_PlatformTimer_generic.cpp"
|
||||
|
||||
//==============================================================================
|
||||
#elif JUCE_WINDOWS
|
||||
|
|
@ -228,8 +227,7 @@
|
|||
#endif
|
||||
#include "native/juce_SystemStats_linux.cpp"
|
||||
#include "native/juce_Threads_linux.cpp"
|
||||
#include "native/juce_FileDescriptor_linux.cpp"
|
||||
#include "native/juce_PlatformTimer_linux.cpp"
|
||||
#include "native/juce_PlatformTimer_generic.cpp"
|
||||
|
||||
//==============================================================================
|
||||
#elif JUCE_BSD
|
||||
|
|
@ -254,8 +252,7 @@
|
|||
#include "native/juce_SystemStats_android.cpp"
|
||||
#include "native/juce_Threads_android.cpp"
|
||||
#include "native/juce_RuntimePermissions_android.cpp"
|
||||
#include "native/juce_FileDescriptor_linux.cpp"
|
||||
#include "native/juce_PlatformTimer_linux.cpp"
|
||||
#include "native/juce_PlatformTimer_generic.cpp"
|
||||
|
||||
//==============================================================================
|
||||
#elif JUCE_WASM
|
||||
|
|
|
|||
|
|
@ -1,159 +0,0 @@
|
|||
/*
|
||||
==============================================================================
|
||||
|
||||
This file is part of the JUCE library.
|
||||
Copyright (c) 2022 - Raw Material Software Limited
|
||||
|
||||
JUCE is an open source library subject to commercial or open-source
|
||||
licensing.
|
||||
|
||||
The code included in this file is provided under the terms of the ISC license
|
||||
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
|
||||
To use, copy, modify, and/or distribute this software for any purpose with or
|
||||
without fee is hereby granted provided that the above copyright notice and
|
||||
this permission notice appear in all copies.
|
||||
|
||||
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
|
||||
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
|
||||
DISCLAIMED.
|
||||
|
||||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
class FileDescriptor
|
||||
{
|
||||
public:
|
||||
explicit FileDescriptor (int fileDescriptorId)
|
||||
: id { fileDescriptorId } {}
|
||||
|
||||
~FileDescriptor()
|
||||
{
|
||||
if (isValid())
|
||||
close (id);
|
||||
}
|
||||
|
||||
bool isValid() const { return id >= 0; }
|
||||
int get() const { return id; }
|
||||
|
||||
template <typename DataType>
|
||||
DataType readData() const
|
||||
{
|
||||
if (! isValid())
|
||||
return {};
|
||||
|
||||
alignas (DataType) std::array<std::byte, sizeof (DataType)> buffer;
|
||||
size_t numberOfBytesRead { 0 };
|
||||
|
||||
while (numberOfBytesRead < buffer.size())
|
||||
{
|
||||
const auto result = read (get(), buffer.data() + numberOfBytesRead, buffer.size() - numberOfBytesRead);
|
||||
|
||||
if (result < 0)
|
||||
return {};
|
||||
|
||||
numberOfBytesRead += (size_t) result;
|
||||
}
|
||||
|
||||
return readUnaligned<DataType> (buffer.data());
|
||||
}
|
||||
|
||||
template <typename DataType>
|
||||
void writeData (const DataType& value) const
|
||||
{
|
||||
if (! isValid())
|
||||
return;
|
||||
|
||||
alignas (DataType) std::array<std::byte, sizeof (DataType)> buffer;
|
||||
writeUnaligned (buffer.data(), value);
|
||||
size_t numberOfBytesWritten { 0 };
|
||||
|
||||
while (numberOfBytesWritten < buffer.size())
|
||||
{
|
||||
const auto result = write (get(), buffer.data() + numberOfBytesWritten, buffer.size() - numberOfBytesWritten);
|
||||
|
||||
if (result < 0)
|
||||
return;
|
||||
|
||||
numberOfBytesWritten += (size_t) result;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
int id{};
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FileDescriptor)
|
||||
JUCE_DECLARE_NON_MOVEABLE (FileDescriptor)
|
||||
};
|
||||
|
||||
class EventFd
|
||||
{
|
||||
public:
|
||||
EventFd() = default;
|
||||
void signal() const { fd.writeData ((uint64_t) 1); }
|
||||
|
||||
int get() const { return fd.get(); }
|
||||
bool isValid() const { return fd.isValid(); }
|
||||
|
||||
private:
|
||||
FileDescriptor fd { eventfd (0, EFD_CLOEXEC) };
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EventFd)
|
||||
JUCE_DECLARE_NON_MOVEABLE (EventFd)
|
||||
};
|
||||
|
||||
class TimerFd
|
||||
{
|
||||
public:
|
||||
TimerFd() = default;
|
||||
|
||||
bool setIntervalMs (int ms) const
|
||||
{
|
||||
if (! fd.isValid())
|
||||
return false;
|
||||
|
||||
jassert (ms >= 0);
|
||||
|
||||
const auto seconds = ms / 1'000;
|
||||
const auto nanoseconds = (ms % 1'000) * 1'000'000;
|
||||
|
||||
const itimerspec spec
|
||||
{
|
||||
{ seconds, nanoseconds },
|
||||
{ seconds, nanoseconds }
|
||||
};
|
||||
|
||||
return timerfd_settime (fd.get(), 0, &spec, nullptr) == 0;
|
||||
}
|
||||
|
||||
int getIntervalMs() const
|
||||
{
|
||||
if (! fd.isValid())
|
||||
return 0;
|
||||
|
||||
itimerspec result{};
|
||||
|
||||
if (timerfd_gettime (fd.get(), &result) != 0)
|
||||
return 0;
|
||||
|
||||
return static_cast<int> (result.it_interval.tv_sec * 1'000 + result.it_interval.tv_nsec / 1'000'000);
|
||||
}
|
||||
|
||||
int getAndClearNumberOfExpirations() const
|
||||
{
|
||||
return (int) fd.readData<uint64_t>();
|
||||
}
|
||||
|
||||
int get() const { return fd.get(); }
|
||||
bool isValid() const { return fd.isValid(); }
|
||||
|
||||
private:
|
||||
FileDescriptor fd { timerfd_create (CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK) };
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TimerFd)
|
||||
JUCE_DECLARE_NON_MOVEABLE (TimerFd)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
==============================================================================
|
||||
|
||||
This file is part of the JUCE library.
|
||||
Copyright (c) 2022 - Raw Material Software Limited
|
||||
|
||||
JUCE is an open source library subject to commercial or open-source
|
||||
licensing.
|
||||
|
||||
The code included in this file is provided under the terms of the ISC license
|
||||
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
|
||||
To use, copy, modify, and/or distribute this software for any purpose with or
|
||||
without fee is hereby granted provided that the above copyright notice and
|
||||
this permission notice appear in all copies.
|
||||
|
||||
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
|
||||
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
|
||||
DISCLAIMED.
|
||||
|
||||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
class HighResolutionTimerThread final : private Thread
|
||||
{
|
||||
public:
|
||||
struct Impl
|
||||
{
|
||||
virtual ~Impl() = default;
|
||||
virtual void runThread() = 0;
|
||||
virtual void signalThreadShouldExit() = 0;
|
||||
};
|
||||
|
||||
HighResolutionTimerThread (Impl& implementation)
|
||||
: Thread { "HighResolutionTimerThread" },
|
||||
impl { implementation }
|
||||
{
|
||||
startThread (Thread::Priority::highest);
|
||||
}
|
||||
|
||||
~HighResolutionTimerThread() override
|
||||
{
|
||||
impl.signalThreadShouldExit();
|
||||
waitForThreadToExit (-1);
|
||||
}
|
||||
|
||||
bool isRunning() const { return isThreadRunning(); }
|
||||
|
||||
private:
|
||||
void run() override
|
||||
{
|
||||
impl.runThread();
|
||||
}
|
||||
|
||||
Impl& impl;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (HighResolutionTimerThread)
|
||||
JUCE_DECLARE_NON_MOVEABLE (HighResolutionTimerThread)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
@ -26,7 +26,7 @@ namespace juce
|
|||
struct PlatformTimerListener
|
||||
{
|
||||
virtual ~PlatformTimerListener() = default;
|
||||
virtual void onTimerExpired (int numberOfExpirations) = 0;
|
||||
virtual void onTimerExpired() = 0;
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -23,86 +23,124 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
class PlatformTimer final : private HighResolutionTimerThread::Impl
|
||||
class PlatformTimer final : private Thread
|
||||
{
|
||||
public:
|
||||
explicit PlatformTimer (PlatformTimerListener& ptl)
|
||||
: listener { ptl } {}
|
||||
: Thread { "HighResolutionTimerThread" },
|
||||
listener { ptl }
|
||||
{
|
||||
startThread (Priority::highest);
|
||||
}
|
||||
|
||||
~PlatformTimer()
|
||||
{
|
||||
stopThread (-1);
|
||||
}
|
||||
|
||||
void startTimer (int newIntervalMs)
|
||||
{
|
||||
if (! thread.isRunning())
|
||||
return;
|
||||
jassert (newIntervalMs > 0);
|
||||
jassert (timer == nullptr);
|
||||
|
||||
{
|
||||
std::scoped_lock lock { mutex };
|
||||
intervalMs = newIntervalMs;
|
||||
nextEventTime = Time::getCurrentTime() + RelativeTime::milliseconds (newIntervalMs);
|
||||
std::scoped_lock lock { runCopyMutex };
|
||||
timer = std::make_shared<Timer> (listener, newIntervalMs);
|
||||
}
|
||||
|
||||
event.signal();
|
||||
notify();
|
||||
}
|
||||
|
||||
void cancelTimer()
|
||||
{
|
||||
jassert (thread.isRunning());
|
||||
jassert (timer != nullptr);
|
||||
|
||||
{
|
||||
std::scoped_lock lock { mutex };
|
||||
jassert (intervalMs > 0);
|
||||
intervalMs = 0;
|
||||
}
|
||||
timer->cancel();
|
||||
|
||||
event.signal();
|
||||
// Note the only race condition we need to protect against
|
||||
// here is the copy in run().
|
||||
//
|
||||
// Calls to startTimer(), cancelTimer(), and getIntervalMs()
|
||||
// are already guaranteed to be both thread safe and well
|
||||
// synchronised.
|
||||
|
||||
std::scoped_lock lock { runCopyMutex };
|
||||
timer = nullptr;
|
||||
}
|
||||
|
||||
int getIntervalMs() const
|
||||
{
|
||||
std::scoped_lock lock { mutex };
|
||||
return thread.isRunning() ? intervalMs : 0;
|
||||
return isThreadRunning() && timer != nullptr ? timer->getIntervalMs() : 0;
|
||||
}
|
||||
|
||||
private:
|
||||
int millisecondsUntilNextEvent()
|
||||
void run() final
|
||||
{
|
||||
std::scoped_lock lock { mutex };
|
||||
return intervalMs > 0 ? jmax (0, (int) (nextEventTime - Time::getCurrentTime()).inMilliseconds()) : -1;
|
||||
}
|
||||
|
||||
bool nextEvent()
|
||||
{
|
||||
std::scoped_lock lock { mutex };
|
||||
if (intervalMs <= 0 || nextEventTime > Time::getCurrentTime())
|
||||
return false;
|
||||
|
||||
nextEventTime += RelativeTime::milliseconds (intervalMs);
|
||||
return true;
|
||||
}
|
||||
|
||||
void runThread() override
|
||||
{
|
||||
while (! shouldExitThread.load())
|
||||
const auto copyTimer = [&]
|
||||
{
|
||||
if (nextEvent())
|
||||
listener.onTimerExpired (1);
|
||||
else
|
||||
event.wait (millisecondsUntilNextEvent());
|
||||
std::scoped_lock lock { runCopyMutex };
|
||||
return timer;
|
||||
};
|
||||
|
||||
while (! threadShouldExit())
|
||||
{
|
||||
if (auto t = copyTimer())
|
||||
t->run();
|
||||
|
||||
wait (-1);
|
||||
}
|
||||
}
|
||||
|
||||
void signalThreadShouldExit() override
|
||||
class Timer
|
||||
{
|
||||
shouldExitThread.store (true);
|
||||
event.signal();
|
||||
}
|
||||
public:
|
||||
Timer (PlatformTimerListener& l, int i)
|
||||
: listener { l }, intervalMs { i } {}
|
||||
|
||||
int getIntervalMs() const
|
||||
{
|
||||
return intervalMs;
|
||||
}
|
||||
|
||||
void cancel()
|
||||
{
|
||||
stop.signal();
|
||||
}
|
||||
|
||||
void run()
|
||||
{
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
tryToUpgradeCurrentThreadToRealtime (Thread::RealtimeOptions{}.withPeriodMs (intervalMs));
|
||||
#endif
|
||||
|
||||
const auto millisecondsUntil = [] (auto time)
|
||||
{
|
||||
return jmax (0.0, time - Time::getMillisecondCounterHiRes());
|
||||
};
|
||||
|
||||
while (! stop.wait (millisecondsUntil (nextEventTime)))
|
||||
{
|
||||
if (Time::getMillisecondCounterHiRes() >= nextEventTime)
|
||||
{
|
||||
listener.onTimerExpired();
|
||||
nextEventTime += intervalMs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
PlatformTimerListener& listener;
|
||||
const int intervalMs;
|
||||
double nextEventTime = Time::getMillisecondCounterHiRes() + intervalMs;
|
||||
WaitableEvent stop { true };
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Timer)
|
||||
JUCE_DECLARE_NON_MOVEABLE (Timer)
|
||||
};
|
||||
|
||||
PlatformTimerListener& listener;
|
||||
mutable std::mutex mutex;
|
||||
int intervalMs{};
|
||||
Time nextEventTime;
|
||||
WaitableEvent event;
|
||||
std::atomic<bool> shouldExitThread { false };
|
||||
HighResolutionTimerThread thread { *this };
|
||||
mutable std::mutex runCopyMutex;
|
||||
std::shared_ptr<Timer> timer;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PlatformTimer)
|
||||
JUCE_DECLARE_NON_MOVEABLE (PlatformTimer)
|
||||
|
|
|
|||
|
|
@ -1,88 +0,0 @@
|
|||
/*
|
||||
==============================================================================
|
||||
|
||||
This file is part of the JUCE library.
|
||||
Copyright (c) 2022 - Raw Material Software Limited
|
||||
|
||||
JUCE is an open source library subject to commercial or open-source
|
||||
licensing.
|
||||
|
||||
The code included in this file is provided under the terms of the ISC license
|
||||
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
|
||||
To use, copy, modify, and/or distribute this software for any purpose with or
|
||||
without fee is hereby granted provided that the above copyright notice and
|
||||
this permission notice appear in all copies.
|
||||
|
||||
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
|
||||
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
|
||||
DISCLAIMED.
|
||||
|
||||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
class PlatformTimer final : private HighResolutionTimerThread::Impl
|
||||
{
|
||||
public:
|
||||
explicit PlatformTimer (PlatformTimerListener& ptl)
|
||||
: listener { ptl } {}
|
||||
|
||||
void startTimer (int newIntervalMs)
|
||||
{
|
||||
timer.setIntervalMs (newIntervalMs);
|
||||
}
|
||||
|
||||
void cancelTimer()
|
||||
{
|
||||
startTimer (0);
|
||||
}
|
||||
|
||||
int getIntervalMs() const
|
||||
{
|
||||
return thread.isRunning() ? timer.getIntervalMs() : 0;
|
||||
}
|
||||
|
||||
private:
|
||||
void runThread() override
|
||||
{
|
||||
if (! (timer.isValid() && exitThread.isValid()))
|
||||
return;
|
||||
|
||||
pollfd pollData[]
|
||||
{
|
||||
{ timer.get(), POLLIN, 0 },
|
||||
{ exitThread.get(), POLLIN, 0 }
|
||||
};
|
||||
|
||||
const auto& [timerPollData, exitThreadPollData] = pollData;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if (poll (pollData, numElementsInArray (pollData), -1) <= 0)
|
||||
return;
|
||||
|
||||
if (exitThreadPollData.revents & POLLIN)
|
||||
return;
|
||||
|
||||
if (timerPollData.revents & POLLIN)
|
||||
listener.onTimerExpired (timer.getAndClearNumberOfExpirations());
|
||||
}
|
||||
}
|
||||
|
||||
void signalThreadShouldExit() override
|
||||
{
|
||||
exitThread.signal();
|
||||
}
|
||||
|
||||
PlatformTimerListener& listener;
|
||||
const TimerFd timer;
|
||||
const EventFd exitThread;
|
||||
HighResolutionTimerThread thread { *this };
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PlatformTimer)
|
||||
JUCE_DECLARE_NON_MOVEABLE (PlatformTimer)
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
==============================================================================
|
||||
|
||||
This file is part of the JUCE library.
|
||||
Copyright (c) 2022 - Raw Material Software Limited
|
||||
|
||||
JUCE is an open source library subject to commercial or open-source
|
||||
licensing.
|
||||
|
||||
The code included in this file is provided under the terms of the ISC license
|
||||
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
|
||||
To use, copy, modify, and/or distribute this software for any purpose with or
|
||||
without fee is hereby granted provided that the above copyright notice and
|
||||
this permission notice appear in all copies.
|
||||
|
||||
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
|
||||
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
|
||||
DISCLAIMED.
|
||||
|
||||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
class PlatformTimer final : private HighResolutionTimerThread::Impl
|
||||
{
|
||||
public:
|
||||
explicit PlatformTimer (PlatformTimerListener& ptl)
|
||||
: listener { ptl } {}
|
||||
|
||||
void startTimer (int newIntervalMs)
|
||||
{
|
||||
jassert (newIntervalMs > 0);
|
||||
jassert (timer == nullptr);
|
||||
|
||||
if (runLoop == nullptr)
|
||||
return;
|
||||
|
||||
const auto intervalSeconds = static_cast<double> (newIntervalMs) / 1'000.0;
|
||||
|
||||
CFRunLoopTimerContext context{};
|
||||
context.info = &listener;
|
||||
|
||||
const auto callback = [] (CFRunLoopTimerRef, void* ctx)
|
||||
{
|
||||
static_cast<PlatformTimerListener*> (ctx)->onTimerExpired (1);
|
||||
};
|
||||
|
||||
timer.reset (CFRunLoopTimerCreate (kCFAllocatorDefault,
|
||||
intervalSeconds + CFAbsoluteTimeGetCurrent(),
|
||||
intervalSeconds,
|
||||
0,
|
||||
0,
|
||||
callback,
|
||||
&context));
|
||||
|
||||
CFRunLoopAddTimer (runLoop, timer.get(), kCFRunLoopDefaultMode);
|
||||
}
|
||||
|
||||
void cancelTimer()
|
||||
{
|
||||
jassert (runLoop != nullptr);
|
||||
jassert (timer != nullptr);
|
||||
|
||||
CFRunLoopRemoveTimer (runLoop, timer.get(), kCFRunLoopDefaultMode);
|
||||
timer.reset();
|
||||
}
|
||||
|
||||
int getIntervalMs() const
|
||||
{
|
||||
return timer != nullptr ? (int) (CFRunLoopTimerGetInterval (timer.get()) * 1'000.0) : 0;
|
||||
}
|
||||
|
||||
private:
|
||||
static void preventRunLoopFromEarlyExits()
|
||||
{
|
||||
CFRunLoopSourceContext context{};
|
||||
CFRunLoopAddSource (CFRunLoopGetCurrent(),
|
||||
CFRunLoopSourceCreate (kCFAllocatorDefault, 0, &context),
|
||||
kCFRunLoopDefaultMode);
|
||||
}
|
||||
|
||||
void setRunLoop()
|
||||
{
|
||||
CFRunLoopPerformBlock (CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, ^()
|
||||
{
|
||||
runLoopPromise.set_value (CFRunLoopGetCurrent());
|
||||
});
|
||||
}
|
||||
|
||||
void runThread() override
|
||||
{
|
||||
preventRunLoopFromEarlyExits();
|
||||
setRunLoop();
|
||||
CFRunLoopRun();
|
||||
}
|
||||
|
||||
void signalThreadShouldExit() override
|
||||
{
|
||||
if (runLoop != nullptr)
|
||||
CFRunLoopStop (runLoop);
|
||||
}
|
||||
|
||||
PlatformTimerListener& listener;
|
||||
CFUniquePtr<CFRunLoopTimerRef> timer;
|
||||
std::promise<CFRunLoopRef> runLoopPromise;
|
||||
HighResolutionTimerThread thread { *this };
|
||||
CFRunLoopRef runLoop = [&]() -> CFRunLoopRef
|
||||
{
|
||||
return thread.isRunning() ? runLoopPromise.get_future().get() : nullptr;
|
||||
}();
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PlatformTimer)
|
||||
JUCE_DECLARE_NON_MOVEABLE (PlatformTimer)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
const auto callback = [] (UINT, UINT, DWORD_PTR context, DWORD_PTR, DWORD_PTR)
|
||||
{
|
||||
reinterpret_cast<PlatformTimerListener*> (context)->onTimerExpired (1);
|
||||
reinterpret_cast<PlatformTimerListener*> (context)->onTimerExpired();
|
||||
};
|
||||
|
||||
timerId = timeSetEvent ((UINT) newIntervalMs, 1, callback, (DWORD_PTR) &listener, TIME_PERIODIC | TIME_CALLBACK_FUNCTION);
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ public:
|
|||
if (timer.getIntervalMs() > 0)
|
||||
timer.cancelTimer();
|
||||
|
||||
jassert (timer.getIntervalMs() == 0);
|
||||
|
||||
if (newIntervalMs > 0)
|
||||
timer.startTimer (jmax (0, newIntervalMs));
|
||||
|
||||
|
|
@ -64,26 +66,26 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
void onTimerExpired (int numberOfExpirations) final
|
||||
void onTimerExpired() final
|
||||
{
|
||||
callbackThreadId.store (std::this_thread::get_id());
|
||||
|
||||
std::scoped_lock lock { callbackMutex };
|
||||
|
||||
shouldCancelCallbacks.store (! isTimerRunning());
|
||||
|
||||
for (int i = 0; i < numberOfExpirations && ! shouldCancelCallbacks.load(); ++i)
|
||||
{
|
||||
try
|
||||
std::scoped_lock lock { callbackMutex };
|
||||
|
||||
if (isTimerRunning())
|
||||
{
|
||||
owner.hiResTimerCallback();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
// Exceptions thrown in a timer callback won't be
|
||||
// propagated to the main thread, it's best to find a
|
||||
// way to avoid them if possible
|
||||
jassertfalse;
|
||||
try
|
||||
{
|
||||
owner.hiResTimerCallback();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
// Exceptions thrown in a timer callback won't be
|
||||
// propagated to the main thread, it's best to find
|
||||
// a way to avoid them if possible
|
||||
jassertfalse;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ void Thread::setAffinityMask (const uint32 newAffinityMask)
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
bool Thread::wait (const int timeOutMilliseconds) const
|
||||
bool Thread::wait (double timeOutMilliseconds) const
|
||||
{
|
||||
return defaultEvent.wait (timeOutMilliseconds);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -440,7 +440,7 @@ public:
|
|||
|
||||
@returns true if the event has been signalled, false if the timeout expires.
|
||||
*/
|
||||
bool wait (int timeOutMilliseconds) const;
|
||||
bool wait (double timeOutMilliseconds) const;
|
||||
|
||||
/** Wakes up the thread.
|
||||
|
||||
|
|
|
|||
|
|
@ -169,13 +169,13 @@ void ThreadPool::addJob (std::function<void()> jobToRun)
|
|||
{
|
||||
struct LambdaJobWrapper : public ThreadPoolJob
|
||||
{
|
||||
LambdaJobWrapper (std::function<void()> j) : ThreadPoolJob ("lambda"), job (j) {}
|
||||
LambdaJobWrapper (std::function<void()> j) : ThreadPoolJob ("lambda"), job (std::move (j)) {}
|
||||
JobStatus runJob() override { job(); return ThreadPoolJob::jobHasFinished; }
|
||||
|
||||
std::function<void()> job;
|
||||
};
|
||||
|
||||
addJob (new LambdaJobWrapper (jobToRun), true);
|
||||
addJob (new LambdaJobWrapper (std::move (jobToRun)), true);
|
||||
}
|
||||
|
||||
int ThreadPool::getNumJobs() const noexcept
|
||||
|
|
|
|||
|
|
@ -28,19 +28,19 @@ WaitableEvent::WaitableEvent (bool manualReset) noexcept
|
|||
{
|
||||
}
|
||||
|
||||
bool WaitableEvent::wait (int timeOutMilliseconds) const
|
||||
bool WaitableEvent::wait (double timeOutMilliseconds) const
|
||||
{
|
||||
std::unique_lock<std::mutex> lock (mutex);
|
||||
|
||||
if (! triggered)
|
||||
{
|
||||
if (timeOutMilliseconds < 0)
|
||||
if (timeOutMilliseconds < 0.0)
|
||||
{
|
||||
condition.wait (lock, [this] { return triggered == true; });
|
||||
}
|
||||
else
|
||||
{
|
||||
if (! condition.wait_for (lock, std::chrono::milliseconds (timeOutMilliseconds),
|
||||
if (! condition.wait_for (lock, std::chrono::duration<double, std::milli> { timeOutMilliseconds },
|
||||
[this] { return triggered == true; }))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public:
|
|||
@returns true if the object has been signalled, false if the timeout expires first.
|
||||
@see signal, reset
|
||||
*/
|
||||
bool wait (int timeOutMilliseconds = -1) const;
|
||||
bool wait (double timeOutMilliseconds = -1.0) const;
|
||||
|
||||
/** Wakes up any threads that are currently waiting on this object.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue