Browse Source

More

tags/1.9.4
falkTX 10 years ago
parent
commit
981c332873
4 changed files with 24 additions and 8 deletions
  1. +8
    -1
      source/backend/engine/CarlaEngineOsc.cpp
  2. +4
    -5
      source/backend/engine/CarlaEngineOsc.hpp
  3. +2
    -1
      source/backend/engine/CarlaEngineThread.cpp
  4. +10
    -1
      source/utils/CarlaJuceUtils.hpp

+ 8
- 1
source/backend/engine/CarlaEngineOsc.cpp View File

@@ -41,8 +41,15 @@ extern int CarlaPluginSetOscBridgeInfo(CarlaPlugin* const plugin, const PluginBr

CarlaEngineOsc::CarlaEngineOsc(CarlaEngine* const engine) noexcept
: fEngine(engine),
#ifndef BUILD_BRIDGE
fControlData(),
#endif
fName(),
fServerPathTCP(),
fServerPathUDP(),
fServerTCP(nullptr),
fServerUDP(nullptr)
fServerUDP(nullptr),
leakDetector()
{
CARLA_SAFE_ASSERT(engine != nullptr);
carla_debug("CarlaEngineOsc::CarlaEngineOsc(%p)", engine);


+ 4
- 5
source/backend/engine/CarlaEngineOsc.hpp View File

@@ -93,17 +93,16 @@ public:
private:
CarlaEngine* const fEngine;

CarlaString fName;
#ifndef BUILD_BRIDGE
CarlaOscData fControlData; // for carla-control
#endif

CarlaString fName;
CarlaString fServerPathTCP;
CarlaString fServerPathUDP;
lo_server fServerTCP;
lo_server fServerUDP;

#ifndef BUILD_BRIDGE
CarlaOscData fControlData; // for carla-control
#endif

// -------------------------------------------------------------------

int handleMessage(const bool isTCP, const char* const path, const int argc, const lo_arg* const* const argv, const char* const types, const lo_message msg);


+ 2
- 1
source/backend/engine/CarlaEngineThread.cpp View File

@@ -25,7 +25,8 @@ CARLA_BACKEND_START_NAMESPACE

CarlaEngineThread::CarlaEngineThread(CarlaEngine* const engine) noexcept
: CarlaThread("CarlaEngineThread"),
kEngine(engine)
kEngine(engine),
leakDetector()
{
CARLA_SAFE_ASSERT(engine != nullptr);
carla_debug("CarlaEngineThread::CarlaEngineThread(%p)", engine);


+ 10
- 1
source/utils/CarlaJuceUtils.hpp View File

@@ -45,12 +45,21 @@
#define CARLA_LEAK_DETECTOR(ClassName) \
friend class ::LeakedObjectDetector<ClassName>; \
static const char* getLeakedObjectClassName() noexcept { return #ClassName; } \
::LeakedObjectDetector<ClassName> CARLA_JOIN_MACRO(leakDetector, __LINE__);
::LeakedObjectDetector<ClassName> leakDetector;

#define CARLA_LEAK_DETECTOR_NAME(ClassName, leakDetectorName) \
friend class ::LeakedObjectDetector<ClassName>; \
static const char* getLeakedObjectClassName() noexcept { return #ClassName; } \
::LeakedObjectDetector<ClassName> leakDetectorName;

#define CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ClassName) \
CARLA_DECLARE_NON_COPY_CLASS(ClassName) \
CARLA_LEAK_DETECTOR(ClassName)

#define CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR_NAME(ClassName, leakDetectorName) \
CARLA_DECLARE_NON_COPY_CLASS(ClassName) \
CARLA_LEAK_DETECTOR_NAME(ClassName, leakDetectorName)

//==============================================================================
/**
Embedding an instance of this class inside another class can be used as a low-overhead


Loading…
Cancel
Save