fix typos and comment formatting

This commit is contained in:
ReenigneArcher 2022-08-28 16:42:00 -04:00
commit 58ed5ba3ce
No known key found for this signature in database
GPG key ID: 0CA6A47B0630EA9B
34 changed files with 73 additions and 128 deletions

View file

@ -1,6 +1,4 @@
//
// Created by loki on 6/10/19.
//
#ifndef SUNSHINE_THREAD_SAFE_H
#define SUNSHINE_THREAD_SAFE_H
@ -37,7 +35,7 @@ public:
_cv.notify_all();
}
// pop and view shoud not be used interchangebly
// pop and view shoud not be used interchangeably
status_t pop() {
std::unique_lock ul { _lock };
@ -58,7 +56,7 @@ public:
return val;
}
// pop and view shoud not be used interchangebly
// pop and view shoud not be used interchangeably
template<class Rep, class Period>
status_t pop(std::chrono::duration<Rep, Period> delay) {
std::unique_lock ul { _lock };
@ -78,7 +76,7 @@ public:
return val;
}
// pop and view shoud not be used interchangebly
// pop and view shoud not be used interchangeably
const status_t &view() {
std::unique_lock ul { _lock };
@ -508,4 +506,4 @@ inline void cleanup(mail_raw_t *mail) {
}
} // namespace safe
#endif //SUNSHINE_THREAD_SAFE_H
#endif // SUNSHINE_THREAD_SAFE_H