Browse Source

shm: Remove not used JackMem class

Change-Id: I88003f8c55184b141ffd4e068eba889776ce9b14
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
(cherry picked from commit 742dc38a0d)
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
pull/590/head
Timo Wischer 5 years ago
parent
commit
c838159366
2 changed files with 0 additions and 40 deletions
  1. +0
    -1
      common/JackShmMem.cpp
  2. +0
    -39
      common/JackShmMem.h

+ 0
- 1
common/JackShmMem.cpp View File

@@ -26,7 +26,6 @@ namespace Jack

static unsigned int fSegmentNum = 0;
static jack_shm_info_t gInfo;
size_t JackMem::gSize = 0;

JackShmMem::JackShmMem()
{


+ 0
- 39
common/JackShmMem.h View File

@@ -39,45 +39,6 @@ void UnlockMemoryImp(void* ptr, size_t size);
void LockAllMemory();
void UnlockAllMemory();

class JackMem
{
private:

size_t fSize;
static size_t gSize;

protected:

JackMem(): fSize(gSize)
{}
~JackMem()
{}

public:

void* operator new(size_t size)
{
gSize = size;
return calloc(1, size);
}

void operator delete(void* ptr, size_t size)
{
free(ptr);
}

void LockMemory()
{
LockMemoryImp(this, fSize);
}

void UnlockMemory()
{
UnlockMemoryImp(this, fSize);
}

};

/*!
\brief



Loading…
Cancel
Save