Browse Source

Fix NetJack2 initialisation bug.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4733 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.9.5
sletz 14 years ago
parent
commit
2199a24c9c
3 changed files with 9 additions and 49 deletions
  1. +5
    -1
      ChangeLog
  2. +3
    -5
      common/JackNetInterface.h
  3. +1
    -43
      common/JackNetManager.cpp

+ 5
- 1
ChangeLog View File

@@ -36,9 +36,13 @@ John Emmas
Jackdmp changes log
---------------------------

2012-01-25 Stephane Letz <letz@grame.fr>

* Fix NetJack2 initialisation bug.

2012-01-24 Stephane Letz <letz@grame.fr>

* Improve ShutDown in NetManager
* Improve ShutDown in NetManager.
* Correct ShutDown in JackInternalClient and JackLibClient.

2012-01-20 Stephane Letz <letz@grame.fr>


+ 3
- 5
common/JackNetInterface.h View File

@@ -135,11 +135,9 @@ namespace Jack
protected:

bool fRunning;

int fCurrentCycleOffset;
int fMaxCycleOffset;
int fLastfCycleOffset;

bool Init();
bool SetParams();

@@ -165,10 +163,10 @@ namespace Jack

public:

JackNetMasterInterface() : JackNetInterface(), fRunning(false), fCurrentCycleOffset(0), fMaxCycleOffset(0), fLastfCycleOffset(0)
JackNetMasterInterface() : JackNetInterface(), fRunning(false), fCurrentCycleOffset(0), fMaxCycleOffset(0)
{}
JackNetMasterInterface(session_params_t& params, JackNetSocket& socket, const char* multicast_ip)
: JackNetInterface(params, socket, multicast_ip)
: JackNetInterface(params, socket, multicast_ip), fRunning(false), fCurrentCycleOffset(0), fMaxCycleOffset(0)
{}

virtual~JackNetMasterInterface()


+ 1
- 43
common/JackNetManager.cpp View File

@@ -390,8 +390,6 @@ namespace Jack

int JackNetMaster::Process()
{
int res;

if (!fRunning) {
return 0;
}
@@ -478,31 +476,11 @@ namespace Jack
}

//receive sync
res = SyncRecv();
int res = SyncRecv();
if ((res == 0) || (res == SOCKET_ERROR)) {
return res;
}

/*
switch (SyncRecv()) {

case 0:
jack_error("Connection is not yet synched, skip cycle...");
return 0;

case SOCKET_ERROR:
jack_error("Connection is lost, quit master...");
//ask to the manager to properly remove the master
Exit();
//UGLY temporary way to be sure the thread does not call code possibly causing a deadlock in JackEngine.
ThreadExit();
break;

default:
break;
}
*/

#ifdef JACK_MONITOR
fNetTimeMon->Add((((float)(GetMicroSeconds() - begin_time)) / (float) fPeriodUsecs) * 100.f);
#endif
@@ -519,26 +497,6 @@ namespace Jack
JackServerGlobals::fInstance->GetEngine()->NotifyXRun(GetMicroSeconds(), 0);
}

/*
switch (DataRecv()) {

case 0:
jack_error("Connection is not yet synched, skip cycle...");
return 0;

case SOCKET_ERROR:
jack_error("Connection is lost, quit master...");
//ask to the manager to properly remove the master
Exit();
//UGLY temporary way to be sure the thread does not call code possibly causing a deadlock in JackEngine.
ThreadExit();
break;

default:
break;
}
*/

#ifdef JACK_MONITOR
fNetTimeMon->AddLast((((float)(GetMicroSeconds() - begin_time)) / (float) fPeriodUsecs) * 100.f);
#endif


Loading…
Cancel
Save