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
Nov 26, 2015
by
Tobias Schuele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved documentation
parent
ef84b0a5
Show 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 {
...
@@ -44,10 +44,10 @@ namespace base {
* \{
* \{
* \par Description
* \par Description
*
*
* The mutex concept is a concept for thread synchronization. It provides a
12345678901234567890123456789012345678901234567890123456789012345678901234567890
*
lock. At any point in time, only one thread can exclusively hold the lock and
*
The mutex concept is used for thread synchronization and provides a lock.
*
the lock is held, until the thread explicitly releases the beforeh
and
*
At any point in time, only one thread can exclusively hold the lock
and
*
acquired lock
.
*
the lock is held until the thread explicitly releases it
.
*
*
* \par Requirements
* \par Requirements
* - Let \c Mutex be the mutex type
* - Let \c Mutex be the mutex type
...
@@ -193,7 +193,7 @@ class Spinlock {
...
@@ -193,7 +193,7 @@ class Spinlock {
* Waits until the spinlock can be locked and locks it.
* Waits until the spinlock can be locked and locks it.
*
*
* \pre The spinlock is not locked by the current thread.
* \pre The spinlock is not locked by the current thread.
* \post The spinlock is locked
* \post The spinlock is locked
.
* \threadsafe
* \threadsafe
* \see TryLock(), Unlock()
* \see TryLock(), Unlock()
*/
*/
...
@@ -210,17 +210,17 @@ class Spinlock {
...
@@ -210,17 +210,17 @@ class Spinlock {
*/
*/
bool
TryLock
(
bool
TryLock
(
unsigned
int
number_spins
=
1
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.
* 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.
* Unlocks the spinlock.
*
*
* \pre The spinlock is locked by the current thread
* \pre The spinlock is locked by the current thread
.
* \post The spinlock is unlocked
* \post The spinlock is unlocked
.
* \threadsafe
* \threadsafe
* \see Lock(), TryLock()
* \see Lock(), TryLock()
*/
*/
...
...
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