Browse Source

Add a missing EXPORT for JackException class.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2488 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 17 years ago
parent
commit
56241c7166
3 changed files with 19 additions and 12 deletions
  1. +4
    -0
      ChangeLog
  2. +14
    -11
      common/JackException.h
  3. +1
    -1
      common/JackThreadedDriver.cpp

+ 4
- 0
ChangeLog View File

@@ -21,6 +21,10 @@ Romain Moret
Jackdmp changes log
---------------------------

2008-06-08 Stephane Letz <letz@grame.fr>

* Add a missing EXPORT for JackException class.

2008-06-06 Stephane Letz <letz@grame.fr>

* Better error checking in JackGraphManager::RemoveAllPorts.


+ 14
- 11
common/JackException.h View File

@@ -23,20 +23,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include <stdexcept>
#include <iostream>
#include <string>
#include "JackError.h"
#include "JackExports.h"

namespace Jack
{

class JackException : public std::runtime_error {
class EXPORT JackException : public std::runtime_error {
public:
JackException(const std::string& msg) : runtime_error(msg)
{}
JackException(const char* msg) : runtime_error(msg)
{}
std::string Message()
{
return what();
@@ -50,17 +50,20 @@ namespace Jack
}
};
class JackDriverException : public JackException {
class EXPORT JackDriverException : public JackException {
public:
JackDriverException(const std::string& msg) : JackException(msg)
{}
JackDriverException(const char* msg) : JackException(msg)
{}
JackDriverException() : JackException("")
{}
JackDriverException(const std::string& msg) : JackException(msg)
{}
JackDriverException(const char* msg) : JackException(msg)
{}
JackDriverException() : JackException("")
{}
};

}

#endif

+ 1
- 1
common/JackThreadedDriver.cpp View File

@@ -128,7 +128,7 @@ bool JackRestartThreadedDriver::Execute()
Process();
}
return false;
} catch (JackDriverException e) {
} catch (JackDriverException& e) {
e.PrintMessage();
jack_log("Driver is restarted");
fThread.DropRealTime();


Loading…
Cancel
Save