mirror of https://github.com/KLayout/klayout.git
Fixed unchanged functions
This commit is contained in:
parent
20db1e1f24
commit
106b57c676
|
|
@ -105,7 +105,7 @@ public:
|
||||||
if (time < std::numeric_limits<unsigned long>::max ()) {
|
if (time < std::numeric_limits<unsigned long>::max ()) {
|
||||||
|
|
||||||
struct timespec end_time;
|
struct timespec end_time;
|
||||||
clock_gettime (CLOCK_REALTIME, &end_time);
|
current_utc_time (&end_time);
|
||||||
|
|
||||||
end_time.tv_sec += (time / 1000);
|
end_time.tv_sec += (time / 1000);
|
||||||
end_time.tv_nsec += (time % 1000) * 1000000;
|
end_time.tv_nsec += (time % 1000) * 1000000;
|
||||||
|
|
@ -308,7 +308,7 @@ bool Thread::wait (unsigned long time)
|
||||||
while (isRunning ()) {
|
while (isRunning ()) {
|
||||||
|
|
||||||
struct timespec current_time;
|
struct timespec current_time;
|
||||||
clock_gettime (CLOCK_REALTIME, ¤t_time);
|
current_utc_time (¤t_time);
|
||||||
if (end_time.tv_sec < current_time.tv_sec || (end_time.tv_sec == current_time.tv_sec && end_time.tv_nsec < current_time.tv_nsec)) {
|
if (end_time.tv_sec < current_time.tv_sec || (end_time.tv_sec == current_time.tv_sec && end_time.tv_nsec < current_time.tv_nsec)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue