Searched refs:ts (Results 1 – 6 of 6) sorted by relevance
/ThreadX-v6.4.1/ports/linux/gnu/src/ |
D | tx_thread_schedule.c | 85 struct timespec ts; in _tx_thread_schedule() local 88 ts.tv_sec = 0; in _tx_thread_schedule() 89 ts.tv_nsec = 200000; in _tx_thread_schedule() 122 clock_gettime(CLOCK_REALTIME, &ts); in _tx_thread_schedule() 123 ts.tv_nsec += 200000; in _tx_thread_schedule() 124 if (ts.tv_nsec > 1000000000) in _tx_thread_schedule() 126 ts.tv_nsec -= 1000000000; in _tx_thread_schedule() 127 ts.tv_sec++; in _tx_thread_schedule() 129 sem_timedwait(&_tx_linux_semaphore_no_idle, &ts); in _tx_thread_schedule() 131 nanosleep(&ts, &ts); in _tx_thread_schedule() [all …]
|
D | tx_initialize_low_level.c | 322 struct timespec ts; in _tx_linux_timer_interrupt() local 338 clock_gettime(CLOCK_REALTIME, &ts); in _tx_linux_timer_interrupt() 339 ts.tv_nsec += timer_periodic_nsec; in _tx_linux_timer_interrupt() 340 if (ts.tv_nsec > 1000000000) in _tx_linux_timer_interrupt() 342 ts.tv_nsec -= 1000000000; in _tx_linux_timer_interrupt() 343 ts.tv_sec++; in _tx_linux_timer_interrupt() 347 if (sem_timedwait(&_tx_linux_timer_semaphore, &ts) == 0) in _tx_linux_timer_interrupt()
|
/ThreadX-v6.4.1/ports_smp/linux/gnu/src/ |
D | tx_initialize_low_level.c | 335 struct timespec ts; in _tx_linux_timer_interrupt() local 351 clock_gettime(CLOCK_REALTIME, &ts); in _tx_linux_timer_interrupt() 352 ts.tv_nsec += timer_periodic_nsec; in _tx_linux_timer_interrupt() 353 if (ts.tv_nsec > 1000000000) in _tx_linux_timer_interrupt() 355 ts.tv_nsec -= 1000000000; in _tx_linux_timer_interrupt() 356 ts.tv_sec++; in _tx_linux_timer_interrupt() 360 if (sem_timedwait(&_tx_linux_timer_semaphore, &ts) == 0) in _tx_linux_timer_interrupt() 445 struct timespec ts; in _tx_linux_thread_sleep() local 448 clock_gettime(CLOCK_REALTIME, &ts); in _tx_linux_thread_sleep() 449 ts.tv_nsec += ns; in _tx_linux_thread_sleep() [all …]
|
D | tx_thread_schedule.c | 87 struct timespec ts; in _tx_thread_schedule() local 279 clock_gettime(CLOCK_REALTIME, &ts); in _tx_thread_schedule() 280 ts.tv_nsec += 2000000; in _tx_thread_schedule() 281 if (ts.tv_nsec >= 1000000000) in _tx_thread_schedule() 283 ts.tv_nsec -= 1000000000; in _tx_thread_schedule() 284 ts.tv_sec++; in _tx_thread_schedule() 286 tx_linux_sem_timedwait(&_tx_linux_scheduler_semaphore, &ts); in _tx_thread_schedule() 287 clock_gettime(CLOCK_REALTIME, &ts); in _tx_thread_schedule()
|
/ThreadX-v6.4.1/ports/linux/gnu/ |
D | readme_threadx.txt | 120 struct timespec ts; 125 ts.tv_sec = 0; 126 ts.tv_nsec = 10000; 127 while(nanosleep(&ts, &ts));
|
/ThreadX-v6.4.1/ports_smp/linux/gnu/ |
D | readme_threadx.txt | 120 struct timespec ts; 125 ts.tv_sec = 0; 126 ts.tv_nsec = 10000; 127 while(nanosleep(&ts, &ts));
|