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
7410e039
authored
9 years ago
by
Tobias Schuele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved documentation
parent
ef84b0a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
base_cpp/include/embb/base/mutex.h
+9
-9
No files found.
base_cpp/include/embb/base/mutex.h
View file @
7410e039
...
...
@@ -44,10 +44,10 @@ namespace base {
* \{
* \par Description
*
* The mutex concept is a concept for thread synchronization. It provides a
*
lock. At any point in time, only one thread can exclusively hold the lock and
*
the lock is held, until the thread explicitly releases the beforeh
and
*
acquired lock
.
12345678901234567890123456789012345678901234567890123456789012345678901234567890
*
The mutex concept is used for thread synchronization and provides a lock.
*
At any point in time, only one thread can exclusively hold the lock
and
*
the lock is held until the thread explicitly releases it
.
*
* \par Requirements
* - Let \c Mutex be the mutex type
...
...
@@ -193,7 +193,7 @@ class Spinlock {
* Waits until the spinlock can be locked and locks it.
*
* \pre The spinlock is not locked by the current thread.
* \post The spinlock is locked
* \post The spinlock is locked
.
* \threadsafe
* \see TryLock(), Unlock()
*/
...
...
@@ -210,17 +210,17 @@ class Spinlock {
*/
bool
TryLock
(
unsigned
int
number_spins
=
1
/**< [IN] Maximal
count of spins to perform, trying to acquir
e lock.
/**< [IN] Maximal
number of spins when trying to acquire th
e lock.
* Note that passing 0 here results in not trying to obtain the lock at all.
*
D
efault parameter is 1.
*
The d
efault parameter is 1.
*/
);
/**
* Unlocks the spinlock.
*
* \pre The spinlock is locked by the current thread
* \post The spinlock is unlocked
* \pre The spinlock is locked by the current thread
.
* \post The spinlock is unlocked
.
* \threadsafe
* \see Lock(), TryLock()
*/
...
...
This diff is collapsed.
Click to expand it.
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