diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 10:33:02 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 10:33:02 +0200 |
commit | 8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (patch) | |
tree | f27eba088bfbda6aed4f9d70e514ec87a5d553fc /src/linda.h | |
parent | 54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (diff) | |
download | lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.gz lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.tar.bz2 lanes-8745a54f88f31cd51dc86c96039ebe0b3e98f5ea.zip |
Added strong types UserValueCount and UnusedInt
Diffstat (limited to 'src/linda.h')
-rw-r--r-- | src/linda.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linda.h b/src/linda.h index ea660d9..c05fb14 100644 --- a/src/linda.h +++ b/src/linda.h | |||
@@ -30,13 +30,13 @@ class Linda | |||
30 | : linda{ linda_ } | 30 | : linda{ linda_ } |
31 | , L{ L_ } | 31 | , L{ L_ } |
32 | { | 32 | { |
33 | [[maybe_unused]] int const _prev{ linda.keeperOperationCount.fetch_add(1, std::memory_order_seq_cst) }; | 33 | [[maybe_unused]] UnusedInt const _prev{ linda.keeperOperationCount.fetch_add(1, std::memory_order_seq_cst) }; |
34 | } | 34 | } |
35 | 35 | ||
36 | public: | 36 | public: |
37 | ~KeeperOperationInProgress() | 37 | ~KeeperOperationInProgress() |
38 | { | 38 | { |
39 | [[maybe_unused]] int const _prev{ linda.keeperOperationCount.fetch_sub(1, std::memory_order_seq_cst) }; | 39 | [[maybe_unused]] UnusedInt const _prev{ linda.keeperOperationCount.fetch_sub(1, std::memory_order_seq_cst) }; |
40 | } | 40 | } |
41 | }; | 41 | }; |
42 | 42 | ||