mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
Add documentation
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user