Torc  0.1
Protected Member Functions | Friends | List of all members
TorcOSXCallbackThread Class Reference

TorcQThread subclass to run a CFRunLoop. More...

#include <torcrunlooposx.h>

Inheritance diagram for TorcOSXCallbackThread:
[legend]

Protected Member Functions

 TorcOSXCallbackThread ()
 
 ~TorcOSXCallbackThread ()
 
void Start (void)
 
void Finish (void)
 
- Protected Member Functions inherited from TorcQThread
virtual void run (void)
 
void Initialise (void)
 Performs Torc specific thread initialisation. More...
 
void Deinitialise (void)
 Performs Torc specific thread cleanup. More...
 

Friends

class TorcRunLoopOSX
 

Additional Inherited Members

- Signals inherited from TorcQThread
void Started (void)
 
void Finished (void)
 
- Public Member Functions inherited from TorcQThread
 TorcQThread (const QString &Name)
 
virtual ~TorcQThread ()=default
 
- Static Public Member Functions inherited from TorcQThread
static void SetMainThread (void)
 
static bool IsMainThread (void)
 
static void InitRand (void)
 

Detailed Description

TorcQThread subclass to run a CFRunLoop.

A CFRunLoop is only run by default in the main thread and a QThread generally cannot be created to run both a QEventLoop and CFRunLoop. TorcOSXCallbackThread is a singleton thread that is created by TorcRunLoopOSX for the purpose of receiving callbacks from OS X frameworks such as IOKit and DiskArbitration.

See also
gAdminRunLoop
CallbackObject
TorcRunLoopOSX
Note
This may be better implemented by combining QEventLoop::processEvents(QEventLoop::AllEvents, 10ms) and CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false) in TorcAdminThread.

Definition at line 21 of file torcrunlooposx.h.

Constructor & Destructor Documentation

TorcOSXCallbackThread::TorcOSXCallbackThread ( )
protected

Definition at line 55 of file torcrunlooposx.cpp.

TorcOSXCallbackThread::~TorcOSXCallbackThread ( )
protected

Definition at line 61 of file torcrunlooposx.cpp.

Member Function Documentation

void TorcOSXCallbackThread::Finish ( void  )
protectedvirtual

Implements TorcQThread.

Definition at line 73 of file torcrunlooposx.cpp.

void TorcOSXCallbackThread::Start ( void  )
protectedvirtual

Implements TorcQThread.

Definition at line 66 of file torcrunlooposx.cpp.

Friends And Related Function Documentation

friend class TorcRunLoopOSX
friend

Definition at line 23 of file torcrunlooposx.h.


The documentation for this class was generated from the following files: