Skip to content

Commit 5ff47f8

Browse files
committed
#9 - Corrected the Interface to align with the requirement
1 parent a65bf14 commit 5ff47f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ESPressio_IThread.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace ESPressio {
8080
virtual std::function<void(IThread*)> GetOnInitialize() = 0;
8181

8282
/// `GetOnStarted` returns the callback to be invoked when the Thread is started.
83-
virtual std::function<void(IThread*)> GetOnStarte() = 0;
83+
virtual std::function<void(IThread*)> GetOnStart() = 0;
8484

8585
/// `GetOnPaused` returns the callback to be invoked when the Thread is paused.
8686
virtual std::function<void(IThread*)> GetOnPause() = 0;
@@ -113,7 +113,7 @@ namespace ESPressio {
113113

114114
/// `SetOnStarted` sets the callback to be invoked when the Thread is started.
115115
/// The callback function takes `IThread*` and ideally named `sender`.
116-
virtual void SetOnStarte(std::function<void(IThread*)>) = 0;
116+
virtual void SetOnStart(std::function<void(IThread*)>) = 0;
117117

118118
/// `SetOnPaused` sets the callback to be invoked when the Thread is paused.
119119
/// The callback function takes `IThread*` and ideally named `sender`.

src/ESPressio_Thread.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ namespace ESPressio {
173173
return _onInitialize;
174174
}
175175

176-
std::function<void(IThread*)> GetOnStarte() {
176+
std::function<void(IThread*)> GetOnStart() {
177177
return _onStarte;
178178
}
179179

@@ -217,7 +217,7 @@ namespace ESPressio {
217217
_onInitialize = value;
218218
}
219219

220-
void SetOnStarte(std::function<void(IThread*)> value) {
220+
void SetOnStart(std::function<void(IThread*)> value) {
221221
_onStarte = value;
222222
}
223223

0 commit comments

Comments
 (0)