Skip to content

Commit c0478a6

Browse files
committed
- More comment improvements
1 parent 1172c7e commit c0478a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ESPressio_Observable.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ namespace ESPressio {
1212
namespace Observable {
1313

1414
/// An `Observable` is an object that can be observed by any number of `IObserver` descendant types
15-
/// This is a concrete implementation of `IObservable`, but it is NOT Thread-Safe.
15+
/// This is a concrete implementation of `IObservable`.
16+
/// THIS TYPE IS NOT THREAD-SAFE!
1617
/// Registering or Unregistering Observers while Observers are being notified can lead to undefined behavior.
1718
/// If you need a Thread-Safe Implementation, use the `ThreadSafeObservable` class instead.
1819
class Observable : public IObservable {

src/ESPressio_ThreadSafeObservable.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace ESPressio {
1414

1515
/// A `ThreadSafeObservable` is an object that can be observed by any number of `IObserver` descendant types
1616
/// This is a concrete implementation of `IObservable`, and is Thread Safe!
17+
/// Your Observers can Register or Unregister themselves at any time, and the `ThreadSafeObservable` will handle it!
1718
class ThreadSafeObservable : public IObservable {
1819
private:
1920
std::vector<IObserverHandle*> _observers;

0 commit comments

Comments
 (0)