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
5bc9ff94
authored
Nov 17, 2015
by
bernhard-gatzhammer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified exception text to get better language.
EMBB-509
parent
66850f2f
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 @
5bc9ff94
...
...
@@ -74,7 +74,7 @@ void Spinlock::Lock() {
// Currently, embb_spin_lock will always return EMBB_SUCCESS. However,
// This might change.
if
(
status
!=
EMBB_SUCCESS
)
{
EMBB_THROW
(
ErrorException
,
"Error
during
locking spinlock"
);
EMBB_THROW
(
ErrorException
,
"Error
while
locking spinlock"
);
}
}
...
...
@@ -85,7 +85,7 @@ bool Spinlock::TryLock(unsigned int number_spins) {
return
false
;
}
else
if
(
status
!=
EMBB_SUCCESS
)
{
EMBB_THROW
(
ErrorException
,
"Error
during
try-locking spinlock"
);
EMBB_THROW
(
ErrorException
,
"Error
while
try-locking spinlock"
);
}
return
true
;
...
...
@@ -95,7 +95,7 @@ void Spinlock::Unlock() {
int
status
=
embb_spin_unlock
(
&
spinlock_
);
if
(
status
!=
EMBB_SUCCESS
)
{
EMBB_THROW
(
ErrorException
,
"Error
during
unlocking spinlock"
);
EMBB_THROW
(
ErrorException
,
"Error
while
unlocking spinlock"
);
}
}
}
// 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