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

Upgrade libsrt to v1.5.3. v5.0.183 v6.0.81 (#3808)

fix https://github.com/ossrs/srs/issues/3155
Build srt-1-fit fails with `standard attributes in middle of
decl-specifiers` on GCC 12,Arch Linux.

See https://github.com/Haivision/srt/releases/tag/v1.5.3
This commit is contained in:
Haibo Chen 2023-09-21 22:23:56 +08:00 committed by GitHub
parent f9bba0a9b0
commit c5e067fb0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
94 changed files with 5974 additions and 6273 deletions

View file

@ -11,6 +11,8 @@
#ifndef INC_SRT_SYNC_H
#define INC_SRT_SYNC_H
#include "platform_sys.h"
#include <cstdlib>
#include <limits>
#ifdef ENABLE_STDCXX_SYNC
@ -233,7 +235,7 @@ inline Duration<steady_clock> operator*(const int& lhs, const Duration<steady_cl
#endif // ENABLE_STDCXX_SYNC
// NOTE: Moved the following class definitons to "atomic_clock.h"
// NOTE: Moved the following class definitions to "atomic_clock.h"
// template <class Clock>
// class AtomicDuration;
// template <class Clock>
@ -602,7 +604,7 @@ public:
/// Causes the current thread to block until
/// a specific time is reached.
///
/// @return true if condition occured or spuriously woken up
/// @return true if condition occurred or spuriously woken up
/// false on timeout
bool lock_wait_until(const steady_clock::time_point& tp);
@ -613,7 +615,7 @@ public:
/// It may also be unblocked spuriously.
/// Uses internal mutex to lock.
///
/// @return true if condition occured or spuriously woken up
/// @return true if condition occurred or spuriously woken up
/// false on timeout
bool lock_wait_for(const steady_clock::duration& rel_time);
@ -624,7 +626,7 @@ public:
/// It may also be unblocked spuriously.
/// When unblocked, regardless of the reason, lock is reacquiredand wait_for() exits.
///
/// @return true if condition occured or spuriously woken up
/// @return true if condition occurred or spuriously woken up
/// false on timeout
bool wait_for(UniqueLock& lk, const steady_clock::duration& rel_time);