Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS tv-casting-app: Apply StackLocks and sequence callbacks (#26817)
* V1.0.0 branch 25023 fix (#110) * Lock the SDK before interacting with it. [Problem] The Matter SDK assumes that the client will take a lock on the SDK prior to interacting with any APIs. There is 1 Android function and several iOS functions that do not take the lock prior to interacting with the SDK APIs. There are also some functions that invoke the Matter SDK in a way that may result in out-of-order callback invocation (e.g. the conceptual "started" callback may be invoked after the conceptual "ended" callback). [Solution] Create utility functions that help ensure that the Matter SDK is invoked safely and that callbacks are delivered in the correct order. [Testing] Performed local, manual testing with the 'tv-casting-app' example on iOS against a Raspberry Pi running the 'tv-app'. Ran the certification test in the 'tv-casting-app' on iOS against the same Raspberry Pi. * * Updating naming and parameter order for new CastingServerBridge APIs * Refactored the Certification Tests to more fully exercise threading behavior * * Updating the documentation for modified APIs * Restyling --------- Co-authored-by: Michael Douglas <125094815+domichae-amazon@users.noreply.github.com>
- Loading branch information