projects
/
fbgfx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
55eb799
)
fixed "mixed declarations and code"
author
John Tsiombikas
<nuclear@member.fsf.org>
Wed, 19 May 2021 01:45:29 +0000
(
04:45
+0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Wed, 19 May 2021 01:45:29 +0000
(
04:45
+0300)
src/tpool.c
patch
|
blob
|
history
diff --git
a/src/tpool.c
b/src/tpool.c
index
4c1309b
..
9e73f44
100644
(file)
--- a/
src/tpool.c
+++ b/
src/tpool.c
@@
-200,9
+200,11
@@
long tpool_timedwait(struct thread_pool *tpool, long timeout)
{
struct timespec tout_ts;
struct timeval tv0, tv;
{
struct timespec tout_ts;
struct timeval tv0, tv;
+ long sec;
+
gettimeofday(&tv0, 0);
gettimeofday(&tv0, 0);
- long sec = timeout / 1000;
+ sec = timeout / 1000;
tout_ts.tv_nsec = tv0.tv_usec * 1000 + (timeout % 1000) * 1000000;
tout_ts.tv_sec = tv0.tv_sec + sec;
tout_ts.tv_nsec = tv0.tv_usec * 1000 + (timeout % 1000) * 1000000;
tout_ts.tv_sec = tv0.tv_sec + sec;