Ejemplo n.º 1
0
bool JackThreadedDriver::Init()
{
    if (fDriver->Initialize())  {
        SetRealTime();
        return true;
    } else {
        return false;
    }
}
Ejemplo n.º 2
0
        static void* ThreadHandler(void* arg)
        {
            DSPThread* thread = static_cast<DSPThread*>(arg);
            
            AVOIDDENORMALS;
            get_affinity(thread->fThread);

            // One "dummy" cycle to setup thread
            if (thread->fRealTime) {
                thread->Run();
                SetRealTime();
            }
                      
            while (true) {
                thread->Run();
            }
            
            return NULL;
        }