Browse Source

Fix on Windows.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3663 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/v1.9.4
sletz 16 years ago
parent
commit
1b8d262c4f
2 changed files with 13 additions and 16 deletions
  1. +8
    -11
      windows/JackWinNamedPipeServerChannel.cpp
  2. +5
    -5
      windows/JackWinNamedPipeServerChannel.h

+ 8
- 11
windows/JackWinNamedPipeServerChannel.cpp View File

@@ -53,7 +53,14 @@ JackClientPipeThread::~JackClientPipeThread()
int JackClientPipeThread::Open(JackServer* server) // Open the Server/Client connection
{
fServer = server;
return 0;
// Start listening
if (fThread.Start() != 0) {
jack_error("Cannot start Jack server listener\n");
return -1;
} else {
return 0;
}
}

void JackClientPipeThread::Close() // Close the Server/Client connection
@@ -70,16 +77,6 @@ void JackClientPipeThread::Close() // Close the Server/Client connection
fRefNum = -1;
}
int JackClientPipeThread::Start()
{
if (fThread.Start() != 0) {
jack_error("Cannot start Jack server listener");
return -1;
}
return 0;
}

bool JackClientPipeThread::Execute()
{
jack_log("JackClientPipeThread::Execute");


+ 5
- 5
windows/JackWinNamedPipeServerChannel.h View File

@@ -52,9 +52,7 @@ class JackClientPipeThread : public JackRunnableInterface

int Open(JackServer* server); // Open the Server/Client connection
void Close(); // Close the Server/Client connection
int Start();

bool HandleRequest();

// JackRunnableInterface interface
@@ -90,8 +88,10 @@ class JackWinNamedPipeServerChannel : public JackRunnableInterface
JackWinNamedPipeServerChannel();
~JackWinNamedPipeServerChannel();

int Open(const char* server_name, JackServer* server); // Open the Server/Client connection
void Close(); // Close the Server/Client connection
int Open(const char* server_name, JackServer* server); // Open the Server/Client connection
void Close(); // Close the Server/Client connection
int Start();

// JackRunnableInterface interface
bool Init();


Loading…
Cancel
Save