Browse Source

Raise drivers time out used in synchronous mode.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3596 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/v1.9.3
sletz 16 years ago
parent
commit
1eef95890b
9 changed files with 12 additions and 9 deletions
  1. +4
    -0
      ChangeLog
  2. +1
    -1
      common/JackAudioDriver.cpp
  3. +1
    -0
      common/JackConstants.h
  4. +1
    -1
      common/JackFreewheelDriver.cpp
  5. +1
    -1
      macosx/JackMachSemaphore.h
  6. +1
    -3
      macosx/JackPlatformPlug_os.h
  7. +1
    -1
      posix/JackFifo.h
  8. +1
    -1
      posix/JackPosixSemaphore.h
  9. +1
    -1
      windows/JackWinSemaphore.h

+ 4
- 0
ChangeLog View File

@@ -25,6 +25,10 @@ Paul Davis
Jackdmp changes log
---------------------------

2009-07-11 Stephane Letz <letz@grame.fr>
* Raise drivers time out used in synchronous mode.

2009-07-09 Stephane Letz <letz@grame.fr>
* Use __attribute__((__packed__)) again, more fixes for 64/32 mixed mode.


+ 1
- 1
common/JackAudioDriver.cpp View File

@@ -269,7 +269,7 @@ void JackAudioDriver::ProcessGraphSync()
fGraphManager->ResumeRefNum(&fClientControl, fSynchroTable);
if (ProcessSlaves() < 0)
jack_error("JackAudioDriver::ProcessSync ProcessSlaves error, engine may now behave abnormally!!");
if (fGraphManager->SuspendRefNum(&fClientControl, fSynchroTable, fEngineControl->fTimeOutUsecs) < 0)
if (fGraphManager->SuspendRefNum(&fClientControl, fSynchroTable, DRIVER_TIMEOUT_FACTOR * fEngineControl->fTimeOutUsecs) < 0)
jack_error("JackAudioDriver::ProcessSync SuspendRefNum error, engine may now behave abnormally!!");
} else { // Graph not finished: do not activate it
jack_error("JackAudioDriver::ProcessSync: error");


+ 1
- 0
common/JackConstants.h View File

@@ -90,6 +90,7 @@
#define SOCKET_TIME_OUT 5 // in sec
#define DRIVER_OPEN_TIMEOUT 5 // in sec
#define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec
#define DRIVER_TIMEOUT_FACTOR 10

#define NO_PORT 0xFFFE



+ 1
- 1
common/JackFreewheelDriver.cpp View File

@@ -41,7 +41,7 @@ int JackFreewheelDriver::Process()
} else {
fGraphManager->ResumeRefNum(&fClientControl, fSynchroTable); // Signal all clients
if (fEngineControl->fSyncMode) {
if (fGraphManager->SuspendRefNum(&fClientControl, fSynchroTable, fEngineControl->fTimeOutUsecs) < 0) {
if (fGraphManager->SuspendRefNum(&fClientControl, fSynchroTable, DRIVER_TIMEOUT_FACTOR * fEngineControl->fTimeOutUsecs) < 0) {
jack_error("JackFreewheelDriver::ProcessSync SuspendRefNum error");
return -1;
}


+ 1
- 1
macosx/JackMachSemaphore.h View File

@@ -47,7 +47,7 @@ class SERVER_EXPORT JackMachSemaphore : public detail::JackSynchro

public:

JackMachSemaphore(): fSemaphore(0)
JackMachSemaphore():JackSynchro(), fSemaphore(0)
{}

bool Signal();


+ 1
- 3
macosx/JackPlatformPlug_os.h View File

@@ -35,7 +35,7 @@ namespace Jack

/* __JackPlatformMutex__ */
#include "JackPosixMutex.h"
namespace Jack {typedef JackPosixMutex JackMutex; }
namespace Jack { typedef JackPosixMutex JackMutex; }

/* __JackPlatformThread__ */
#include "JackMachThread.h"
@@ -47,8 +47,6 @@ namespace Jack { typedef JackMachSemaphore JackSynchro; }

/* __JackPlatformProcessSync__ */
#include "JackProcessSync.h"
//#include "JackMachProcessSync.h"
//namespace Jack { typedef JackMachProcessSync JackProcessSync; }
/* Only on windows a special JackProcessSync is used. It is directly defined by including JackProcessSync.h here */

/* __JackPlatformServerChannel__ */


+ 1
- 1
posix/JackFifo.h View File

@@ -48,7 +48,7 @@ class SERVER_EXPORT JackFifo : public detail::JackSynchro

public:

JackFifo(): fFifo( -1)
JackFifo():JackSynchro(), fFifo(-1)
{}

bool Signal();


+ 1
- 1
posix/JackPosixSemaphore.h View File

@@ -46,7 +46,7 @@ class SERVER_EXPORT JackPosixSemaphore : public detail::JackSynchro

public:

JackPosixSemaphore(): fSemaphore(NULL)
JackPosixSemaphore():JackSynchro(), fSemaphore(NULL)
{}

bool Signal();


+ 1
- 1
windows/JackWinSemaphore.h View File

@@ -44,7 +44,7 @@ class JackWinSemaphore : public detail::JackSynchro

public:

JackWinSemaphore(): fSemaphore(NULL)
JackWinSemaphore():JackSynchro(), fSemaphore(NULL)
{}

bool Signal();


Loading…
Cancel
Save