Browse Source

More documentation for JackWaitThreadedDriver class.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3333 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.2
sletz 16 years ago
parent
commit
4088360380
2 changed files with 11 additions and 2 deletions
  1. +5
    -0
      common/JackNetDriver.cpp
  2. +6
    -2
      common/JackWaitThreadedDriver.h

+ 5
- 0
common/JackNetDriver.cpp View File

@@ -112,6 +112,11 @@ namespace Jack
}

//init and restart--------------------------------------------------------------------
/*
JackNetDriver is wrapped in a JackWaitThreadedDriver decorator that behaves
as a "dummy driver, until Init method returns.
*/
bool JackNetDriver::Init()
{
jack_log ( "JackNetDriver::Init()" );


+ 6
- 2
common/JackWaitThreadedDriver.h View File

@@ -28,7 +28,11 @@ namespace Jack
{
/*!
\brief To be used as a wrapper of JackNetDriver.
\brief To be used as a wrapper of JackNetDriver.

The idea is to behave as the "dummy" driver, until the network connection is really started and processing starts.
The Execute method will call the ProcessNull() methods until the decorated driver Init method returns.
A helper JackDriverStarter thread is used for that purpose.
*/

class SERVER_EXPORT JackWaitThreadedDriver : public JackThreadedDriver
@@ -60,7 +64,7 @@ class SERVER_EXPORT JackWaitThreadedDriver : public JackThreadedDriver
// JackRunnableInterface interface
bool Execute()
{
// Blocks until driver is started...
// Blocks until decorated driver is started (that is when it's Init method returns).
fDriver->Init();
fRunning = true;
return false;


Loading…
Cancel
Save