|
|
@ -387,8 +387,8 @@ void KJSCPUGuard::start(unsigned int ms, unsigned int i_ms)
|
|
|
|
|
|
|
|
|
|
|
|
oldAlarmHandler = signal(SIGVTALRM, alarmHandler);
|
|
|
|
oldAlarmHandler = signal(SIGVTALRM, alarmHandler);
|
|
|
|
itimerval tv = {
|
|
|
|
itimerval tv = {
|
|
|
|
{ i_ms / 1000, (i_ms % 1000) * 1000 },
|
|
|
|
{ static_cast<__time_t>( i_ms / 1000 ), static_cast<__suseconds_t>( (i_ms % 1000) * 1000 ) },
|
|
|
|
{ ms / 1000, (ms % 1000) * 1000 }
|
|
|
|
{ static_cast<__time_t>( ms / 1000 ), static_cast<__suseconds_t>( (ms % 1000) * 1000 ) }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
setitimer(ITIMER_VIRTUAL, &tv, &oldtv);
|
|
|
|
setitimer(ITIMER_VIRTUAL, &tv, &oldtv);
|
|
|
|
}
|
|
|
|
}
|
|
|
|