Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
66850f2f
authored
Nov 16, 2015
by
bernhard-gatzhammer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified exception text to not to contain implementation details.
EMBB-509
parent
8b03daef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
base_cpp/src/mutex.cc
+3
-3
No files found.
base_cpp/src/mutex.cc
View file @
66850f2f
...
@@ -74,7 +74,7 @@ void Spinlock::Lock() {
...
@@ -74,7 +74,7 @@ void Spinlock::Lock() {
// Currently, embb_spin_lock will always return EMBB_SUCCESS. However,
// Currently, embb_spin_lock will always return EMBB_SUCCESS. However,
// This might change.
// This might change.
if
(
status
!=
EMBB_SUCCESS
)
{
if
(
status
!=
EMBB_SUCCESS
)
{
EMBB_THROW
(
ErrorException
,
"Error
in embb_spin_
lock"
);
EMBB_THROW
(
ErrorException
,
"Error
during locking spin
lock"
);
}
}
}
}
...
@@ -85,7 +85,7 @@ bool Spinlock::TryLock(unsigned int number_spins) {
...
@@ -85,7 +85,7 @@ bool Spinlock::TryLock(unsigned int number_spins) {
return
false
;
return
false
;
}
}
else
if
(
status
!=
EMBB_SUCCESS
)
{
else
if
(
status
!=
EMBB_SUCCESS
)
{
EMBB_THROW
(
ErrorException
,
"Error
in embb_spin_try_
lock"
);
EMBB_THROW
(
ErrorException
,
"Error
during try-locking spin
lock"
);
}
}
return
true
;
return
true
;
...
@@ -95,7 +95,7 @@ void Spinlock::Unlock() {
...
@@ -95,7 +95,7 @@ void Spinlock::Unlock() {
int
status
=
embb_spin_unlock
(
&
spinlock_
);
int
status
=
embb_spin_unlock
(
&
spinlock_
);
if
(
status
!=
EMBB_SUCCESS
)
{
if
(
status
!=
EMBB_SUCCESS
)
{
EMBB_THROW
(
ErrorException
,
"Error
in embb_spin_u
nlock"
);
EMBB_THROW
(
ErrorException
,
"Error
during unlocking spi
nlock"
);
}
}
}
}
}
// namespace base
}
// namespace base
...
...
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