This PR introduces anonymous coroutine macros for easier coroutine creation and improves the State Threads (ST) mutex and condition variable handling in SRS. - **Added coroutine macros**: `SRS_COROUTINE_GO`, `SRS_COROUTINE_GO2`, `SRS_COROUTINE_GO_CTX`, `SRS_COROUTINE_GO_CTX2` - **Added `SrsCoroutineChan`**: Channel for sharing data between coroutines with coroutine-safe operations - **Simplified coroutine creation**: Go-like syntax for creating anonymous coroutines with code blocks --------- Co-authored-by: Jacob Su <suzp1984@gmail.com> Co-authored-by: OSSRS-AI <winlinam@gmail.com>
15 lines
209 B
C++
15 lines
209 B
C++
//
|
|
// Copyright (c) 2013-2025 The SRS Authors
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#ifndef SRS_UTEST_ST2_HPP
|
|
#define SRS_UTEST_ST2_HPP
|
|
|
|
#include <srs_utest.hpp>
|
|
|
|
#include <st.h>
|
|
|
|
#endif // SRS_UTEST_ST2_HPP
|