1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Bela: Drop support

This commit is contained in:
reuk 2023-08-25 20:02:13 +01:00
parent d64b9e7782
commit 9a7ac1f743
No known key found for this signature in database
8 changed files with 12 additions and 651 deletions

View file

@ -32,10 +32,6 @@
==============================================================================
*/
#if JUCE_BELA
extern "C" int cobalt_thread_mode();
#endif
namespace juce
{
@ -384,14 +380,7 @@ int64 Time::getHighResolutionTicks() noexcept
{
timespec t;
#if JUCE_BELA
if (cobalt_thread_mode() == 0x200 /*XNRELAX*/)
clock_gettime (CLOCK_MONOTONIC, &t);
else
__wrap_clock_gettime (CLOCK_MONOTONIC, &t);
#else
clock_gettime (CLOCK_MONOTONIC, &t);
#endif
return (t.tv_sec * (int64) 1000000) + (t.tv_nsec / 1000);
}