[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sleep never returns?




    Hi everyone...


I don't know exactly, but it seems I've got something weird:
pthread_wait_np() does not seem to return... it is called from rt-space, 
from a periodic task once, returns fine as it's supposed to, then is 
called again and nothing happens anymore...
is that possible? Anyone any ideas?

void SysTaskSleep(unsigned long ulMilliSeconds)
{
  if (rtl_running_linux())
    {
      current->state = TASK_INTERRUPTIBLE;
      schedule_timeout(ulMilliSeconds*1000/HZ);
    }
  else
      pthread_wait_np();
}

Again, I cannot post more code because it's too large...
cu
    Daniel

-- 
3S-Smart Software Solutions GmbH
Fischerstr.19, D-87435 Kempten
Tel. ++49-(0)831-54031-72
Fax ++49-(0)831-54031-50
email: d.krippner@3s-software.com
web:   http://www.3s-software.com