Browse Source

Cleanup

tags/v2.4.1
falkTX 3 years ago
parent
commit
d8fcba6fad
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      source/utils/CarlaMainLoop.hpp

+ 3
- 2
source/utils/CarlaMainLoop.hpp View File

@@ -33,14 +33,15 @@ static inline
bool runMainLoopOnce() bool runMainLoopOnce()
{ {
#if defined(CARLA_OS_MAC) #if defined(CARLA_OS_MAC)
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool* const pool = [[NSAutoreleasePool alloc] init];
NSDate* const date = [NSDate distantPast];
NSEvent* event; NSEvent* event;


for (;;) for (;;)
{ {
event = [NSApp event = [NSApp
nextEventMatchingMask:NSAnyEventMask nextEventMatchingMask:NSAnyEventMask
untilDate:[NSDate distantPast]
untilDate:date
inMode:NSDefaultRunLoopMode inMode:NSDefaultRunLoopMode
dequeue:YES]; dequeue:YES];




Loading…
Cancel
Save