1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #2194, Support ST yield

This commit is contained in:
winlin 2021-02-11 21:14:45 +08:00
parent 8d9af57cfa
commit 76d6449317
3 changed files with 11 additions and 2 deletions

View file

@ -156,6 +156,11 @@ void srs_thread_exit(void* retval)
st_thread_exit(retval);
}
void srs_thread_yield()
{
st_thread_yield();
}
srs_error_t srs_tcp_connect(string server, int port, srs_utime_t tm, srs_netfd_t* pstfd)
{
st_utime_t timeout = ST_UTIME_NO_TIMEOUT;