/[svn]/linuxsampler/trunk/src/common/Ref.cpp
ViewVC logotype

Contents of /linuxsampler/trunk/src/common/Ref.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3768 - (show annotations) (download)
Fri May 15 19:52:31 2020 UTC (3 years, 11 months ago) by schoenebeck
File size: 427 byte(s)
Ref<> smart pointer class is now thread-safe.

* Require C11 compliant compiler.

* Ref<> class: Implemented lock-free & wait-free thread-safety.

* Ref<> class: Use portable format specifier %p for pointers.

* Bumped version (2.1.1.svn56).

1 /*
2 * Copyright (c) 2014 - 2020 Christian Schoenebeck
3 *
4 * http://www.linuxsampler.org
5 *
6 * This file is part of LinuxSampler and released under the same terms.
7 * See README file for details.
8 */
9
10 #include "Ref.h"
11
12 namespace LinuxSampler {
13
14 #if LS_REF_ASSERT_MODE
15 std::set<void*> _allRefPtrs;
16 #endif
17 #if LS_REF_ASSERT_MODE && LS_REF_ATOMIC
18 Mutex _allRefPtrsMutex;
19 #endif
20
21 } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC