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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3768 - (hide 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 schoenebeck 2581 /*
2 schoenebeck 3768 * Copyright (c) 2014 - 2020 Christian Schoenebeck
3 schoenebeck 2581 *
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 schoenebeck 3768 #if LS_REF_ASSERT_MODE && LS_REF_ATOMIC
18     Mutex _allRefPtrsMutex;
19     #endif
20 schoenebeck 2581
21     } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC