Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jens Krüger
Lima
Commits
e86b10e7
Commit
e86b10e7
authored
Aug 06, 2012
by
Sebastien Petitdemange
Browse files
Fixed a bug in wait condition
parent
8e61f596
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/src/ThreadUtils.cpp
View file @
e86b10e7
...
@@ -177,7 +177,6 @@ bool Cond::wait(double timeout)
...
@@ -177,7 +177,6 @@ bool Cond::wait(double timeout)
{
{
struct
timeval
now
;
struct
timeval
now
;
struct
timespec
waitTimeout
;
struct
timespec
waitTimeout
;
int
retcode
=
0
;
gettimeofday
(
&
now
,
NULL
);
gettimeofday
(
&
now
,
NULL
);
waitTimeout
.
tv_sec
=
now
.
tv_sec
+
long
(
timeout
);
waitTimeout
.
tv_sec
=
now
.
tv_sec
+
long
(
timeout
);
waitTimeout
.
tv_nsec
=
(
now
.
tv_usec
*
1000
)
+
waitTimeout
.
tv_nsec
=
(
now
.
tv_usec
*
1000
)
+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment