Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
2458827e
Commit
2458827e
authored
Nov 18, 2009
by
Sebastian Eichelbaum
Browse files
[STYLE]
parent
9fddfb4c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
src/common/WCondition.h
src/common/WCondition.h
+1
-1
src/common/WConditionOneShot.cpp
src/common/WConditionOneShot.cpp
+2
-2
src/common/test/WConditionOneShot_test.h
src/common/test/WConditionOneShot_test.h
+3
-3
src/common/test/WCondition_test.h
src/common/test/WCondition_test.h
+0
-1
No files found.
src/common/WCondition.h
View file @
2458827e
...
...
@@ -25,7 +25,7 @@
#ifndef WCONDITION_H
#define WCONDITION_H
#include <boost/thread.hpp>
#include <boost/thread.hpp>
/**
* Class to encapsulate boost::condition_variable_any. You may use it to efficiently wait for events (a condition comes true). It
...
...
src/common/WConditionOneShot.cpp
View file @
2458827e
...
...
@@ -38,7 +38,7 @@ WConditionOneShot::~WConditionOneShot()
{
m_lock
.
unlock
();
}
catch
(
const
boost
::
lock_error
&
e
)
catch
(
const
boost
::
lock_error
&
e
)
{
// ignore this particular error since it is thrown when the lock is not locked anymore
}
...
...
@@ -48,7 +48,7 @@ void WConditionOneShot::wait()
{
// now we wait until the write lock is released and we can get a read lock
boost
::
shared_lock
<
boost
::
shared_mutex
>
slock
=
boost
::
shared_lock
<
boost
::
shared_mutex
>
(
m_mutex
);
slock
.
unlock
();
slock
.
unlock
();
}
void
WConditionOneShot
::
notify
()
...
...
src/common/test/WConditionOneShot_test.h
View file @
2458827e
...
...
@@ -22,8 +22,8 @@
//
//---------------------------------------------------------------------------
#ifndef WCONDITION_TEST_H
#define WCONDITION_TEST_H
#ifndef WCONDITION
ONESHOT
_TEST_H
#define WCONDITION
ONESHOT
_TEST_H
#include <iostream>
...
...
@@ -91,5 +91,5 @@ public:
}
};
#endif // WCONDITION_TEST_H
#endif // WCONDITION
ONESHOT
_TEST_H
src/common/test/WCondition_test.h
View file @
2458827e
...
...
@@ -86,7 +86,6 @@ public:
TS_ASSERT
(
t
.
flag
);
}
};
#endif // WCONDITION_TEST_H
...
...
Write
Preview
Markdown
is supported
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