Qt 4.8
Functions
qcocoaeventloopintegration.mm File Reference
#include "qcocoaeventloopintegration.h"
#import <Cocoa/Cocoa.h>
#include "qcocoaautoreleasepool.h"
#include <QtCore/QElapsedTimer>
#include <QDebug>
#include <QApplication>

Go to the source code of this file.

Functions

void timerCallback (CFRunLoopTimerRef timer, void *info)
 
void wakeupCallback (void *)
 

Function Documentation

◆ timerCallback()

void timerCallback ( CFRunLoopTimerRef  timer,
void *  info 
)

Definition at line 57 of file qcocoaeventloopintegration.mm.

Referenced by QCocoaEventLoopIntegration::QCocoaEventLoopIntegration().

58 {
60  QCocoaEventLoopIntegration *eventLoopIntegration =
61  static_cast<QCocoaEventLoopIntegration *>(info);
62  qint64 nextTime = eventLoopIntegration->nextTimerEvent();
63  CFAbsoluteTime nexttime = CFAbsoluteTimeGetCurrent();
64  nexttime = nexttime + (double(nextTime)/1000);
65  CFRunLoopTimerSetNextFireDate(timer,nexttime);
66 }
static mach_timebase_info_data_t info
EventLoopTimerRef timer
__int64 qint64
Definition: qglobal.h:942

◆ wakeupCallback()

void wakeupCallback ( void *  )