[beast: 17/18] BSE: use std::atomic<>, since Rapicorn's Atomic<> is gone
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 17/18] BSE: use std::atomic<>, since Rapicorn's Atomic<> is gone
- Date: Mon, 5 Oct 2015 22:50:50 +0000 (UTC)
commit 57908f236c6b864fa3629115cbc5e62587fe9740
Author: Tim Janik <timj gnu org>
Date: Tue Oct 6 00:46:03 2015 +0200
BSE: use std::atomic<>, since Rapicorn's Atomic<> is gone
Signed-off-by: Tim Janik <timj gnu org>
bse/gslcommon.cc | 2 +-
bse/gslcommon.hh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bse/gslcommon.cc b/bse/gslcommon.cc
index b50cac1..d7eeff6 100644
--- a/bse/gslcommon.cc
+++ b/bse/gslcommon.cc
@@ -19,7 +19,7 @@ namespace Bse {
static Bse::Mutex global_tick_stamp_mutex;
static uint64 tick_stamp_system_time = 0;
static uint64 tick_stamp_leaps = 0;
-Rapicorn::Atomic<uint64> TickStamp::global_tick_stamp = 0; // initialized to 1 from gsl_init(),
so 0 == invalid
+std::atomic<uint64> TickStamp::global_tick_stamp { 0 }; // initialized to 1 from gsl_init(), so
0 == invalid
static std::list<TickStampWakeupP> tick_stamp_wakeups;
void
diff --git a/bse/gslcommon.hh b/bse/gslcommon.hh
index 2add5e8..46569ae 100644
--- a/bse/gslcommon.hh
+++ b/bse/gslcommon.hh
@@ -65,7 +65,7 @@ namespace Bse {
// == TickStamp ==
class TickStamp {
- static Rapicorn::Atomic<uint64> global_tick_stamp;
+ static std::atomic<uint64> global_tick_stamp;
protected:
static void _init_forgsl ();
public:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]