1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Modernised some old code.

This commit is contained in:
Julian Storer 2010-02-20 15:27:48 +00:00
parent 5c027142f4
commit 39b583fe1e
27 changed files with 966 additions and 1426 deletions

View file

@ -29,7 +29,7 @@ BEGIN_JUCE_NAMESPACE
#include "juce_OutputStream.h"
#include "../../threads/juce_CriticalSection.h"
#include "../../threads/juce_ScopedLock.h"
#include "../../containers/juce_VoidArray.h"
@ -54,18 +54,16 @@ void juce_CheckForDanglingStreams()
OutputStream::OutputStream() throw()
{
#if JUCE_DEBUG
activeStreamLock.enter();
const ScopedLock sl (activeStreamLock);
activeStreams.add (this);
activeStreamLock.exit();
#endif
}
OutputStream::~OutputStream()
{
#if JUCE_DEBUG
activeStreamLock.enter();
const ScopedLock sl (activeStreamLock);
activeStreams.removeValue (this);
activeStreamLock.exit();
#endif
}