A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/1f8c1e903e31fc90c4ac7f4a7f9daca3e1f847ef below:

[core] prefer to use std::atomic if available · Haivision/srt@1f8c1e9 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-6

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-6

lines changed Original file line number Diff line number Diff line change

@@ -63,10 +63,8 @@

63 63 64 64

#if defined(ATOMIC_USE_SRT_SYNC_MUTEX) && (ATOMIC_USE_SRT_SYNC_MUTEX == 1)

65 65

// NOTE: Defined at the top level.

66 -

#elif defined(__APPLE__) && (__cplusplus >= 201103L)

67 -

// NOTE: Does support c++11 std::atomic, but the compiler may or

68 -

// may not support GCC atomic intrinsics. So go ahead and use the

69 -

// std::atomic implementation.

66 +

#elif __cplusplus >= 201103L

67 +

// NOTE: Prefer to use the c++11 std::atomic.

70 68

#define ATOMIC_USE_CPP11_ATOMIC

71 69

#elif (defined(__clang__) && defined(__clang_major__) && (__clang_major__ > 5)) \

72 70

|| defined(__xlc__)

@@ -98,8 +96,6 @@

98 96

#elif defined(_MSC_VER)

99 97

#define ATOMIC_USE_MSVC_INTRINSICS

100 98

#include "atomic_msvc.h"

101 -

#elif __cplusplus >= 201103L

102 -

#define ATOMIC_USE_CPP11_ATOMIC

103 99

#else

104 100

#error Unsupported compiler / system.

105 101

#endif

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4