Code correctness

This commit is contained in:
Ken Van Hoeylandt 2025-08-18 20:49:54 +02:00
parent 929374de79
commit cbf34359c0
3 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ void tt_app_stop();
/** /**
* Start an app by id and bundle. * Start an app by id and bundle.
* @param[in] appId the app manifest id * @param[in] appId the app manifest id
* @param[in] parameters the parameters to pass onto the starting app * @param[in] parameters the parameters to pass onto the starting app
*/ */
void tt_app_start_with_bundle(const char* appId, BundleHandle parameters); void tt_app_start_with_bundle(const char* appId, BundleHandle parameters);

View File

@ -66,7 +66,7 @@ public:
explicit ScopedLock(const Lock& lockable) : lockable(lockable) {} explicit ScopedLock(const Lock& lockable) : lockable(lockable) {}
~ScopedLock() final { ~ScopedLock() override {
lockable.unlock(); // We don't care whether it succeeded or not lockable.unlock(); // We don't care whether it succeeded or not
} }

View File

@ -43,18 +43,18 @@ public:
using Lock::lock; using Lock::lock;
explicit Mutex(Type type = Type::Normal); explicit Mutex(Type type = Type::Normal);
~Mutex() final = default; ~Mutex() override = default;
/** Attempt to lock the mutex. Blocks until timeout passes or lock is acquired. /** Attempt to lock the mutex. Blocks until timeout passes or lock is acquired.
* @param[in] timeout * @param[in] timeout
* @return success result * @return success result
*/ */
bool lock(TickType_t timeout) const final; bool lock(TickType_t timeout) const override;
/** Attempt to unlock the mutex. /** Attempt to unlock the mutex.
* @return success result * @return success result
*/ */
bool unlock() const final; bool unlock() const override;
/** @return the owner of the thread */ /** @return the owner of the thread */
ThreadId getOwner() const; ThreadId getOwner() const;