Browse Source

Correct JackShmReadWritePtr1::Init.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4594 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
894694e7a4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      common/JackShmMem.cpp
  2. +1
    -1
      common/JackShmMem.h

+ 1
- 1
common/JackShmMem.cpp View File

@@ -111,7 +111,7 @@ void LockMemoryImp(void* ptr, size_t size)
if (CHECK_MLOCK((char*)ptr, size)) { if (CHECK_MLOCK((char*)ptr, size)) {
jack_log("Succeeded in locking %u byte memory area", size); jack_log("Succeeded in locking %u byte memory area", size);
} else { } else {
jack_error("Cannot lock down memory area (%s)", strerror(errno));
jack_error("Cannot lock down %u byte memory area (%s)", size, strerror(errno));
} }
} }




+ 1
- 1
common/JackShmMem.h View File

@@ -245,13 +245,13 @@ class JackShmReadWritePtr1
if (jack_attach_lib_shm(&fInfo)) { if (jack_attach_lib_shm(&fInfo)) {
throw std::bad_alloc(); throw std::bad_alloc();
} }
GetShmAddress()->LockMemory();
/* /*
nobody else needs to access this shared memory any more, so nobody else needs to access this shared memory any more, so
destroy it. because we have our own attachment to it, it won't destroy it. because we have our own attachment to it, it won't
vanish till we exit (and release it). vanish till we exit (and release it).
*/ */
jack_destroy_shm(&fInfo); jack_destroy_shm(&fInfo);
GetShmAddress()->LockMemory();
} }
} }




Loading…
Cancel
Save