Browse Source

Fixed some incorrect documentation in the singleton macros

tags/2021-05-28
jules 7 years ago
parent
commit
89b4e13423
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      modules/juce_core/memory/juce_Singleton.h

+ 3
- 6
modules/juce_core/memory/juce_Singleton.h View File

@@ -247,14 +247,11 @@ struct SingletonHolder : private MutexType // (inherited so we can use the empt
version of a singleton, where you're using it in very straightforward version of a singleton, where you're using it in very straightforward
circumstances and don't need the extra checking. circumstances and don't need the extra checking.
Just use the normal JUCE_IMPLEMENT_SINGLETON_SINGLETHREADED as the counterpart
to this declaration, as you would with JUCE_DECLARE_SINGLETON_SINGLETHREADED.
See the documentation for JUCE_DECLARE_SINGLETON for more information about See the documentation for JUCE_DECLARE_SINGLETON for more information about
how to use it, the only difference being that you have to use
JUCE_IMPLEMENT_SINGLETON_SINGLETHREADED instead of JUCE_IMPLEMENT_SINGLETON.
how to use it. Just like JUCE_DECLARE_SINGLETON you need to also have a
corresponding JUCE_IMPLEMENT_SINGLETON statement somewhere in your code.
@see JUCE_IMPLEMENT_SINGLETON_SINGLETHREADED, JUCE_DECLARE_SINGLETON
@see JUCE_IMPLEMENT_SINGLETON, JUCE_DECLARE_SINGLETON
*/ */
#define JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL(Classname) \ #define JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL(Classname) \
\ \


Loading…
Cancel
Save