mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-02 09:21:54 +00:00
Add documentation
This commit is contained in:
parent
f09f580f00
commit
ccb15a640e
@ -1,3 +1,8 @@
|
||||
/**
|
||||
* @brief Atomic mutex implementation.
|
||||
*
|
||||
* Define **STA_ATOMIC_ENABLE** to enable module.
|
||||
*/
|
||||
#ifndef STA_ATOMIC_MUTEX_HPP
|
||||
#define STA_ATOMIC_MUTEX_HPP
|
||||
|
||||
@ -11,6 +16,9 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
/**
|
||||
* @brief Implementation of `Mutex` interface using `std::atomic_flag`.
|
||||
*/
|
||||
class AtomicMutex : public Mutex
|
||||
{
|
||||
public:
|
||||
@ -20,7 +28,7 @@ namespace sta
|
||||
void release() override;
|
||||
|
||||
private:
|
||||
std::atomic_flag lock_;
|
||||
std::atomic_flag lock_; /**< Atomic flag used as lock */
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
/**
|
||||
* @brief Atomic signal implementation.
|
||||
*
|
||||
* Define **STA_ATOMIC_ENABLE** to enable module.
|
||||
*/
|
||||
#ifndef STA_ATOMIC_SIGNAL_HPP
|
||||
#define STA_ATOMIC_SIGNAL_HPP
|
||||
|
||||
@ -11,6 +16,9 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
/**
|
||||
* @brief Implementation of `Signal` interface using `std::atomic`.
|
||||
*/
|
||||
class AtomicSignal : public Signal
|
||||
{
|
||||
public:
|
||||
@ -22,7 +30,7 @@ namespace sta
|
||||
void wait() override;
|
||||
|
||||
private:
|
||||
std::atomic<bool> signal_;
|
||||
std::atomic<bool> signal_; /**< Atomic bool used as signal */
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user