Browse Source

John Emmas patch for Windows.

tags/v1.9.10
Stephane Letz 12 years ago
parent
commit
7849b9279e
4 changed files with 16 additions and 1 deletions
  1. +6
    -0
      common/JackGlobals.cpp
  2. +6
    -0
      posix/JackPosixServerLaunch.cpp
  3. +2
    -0
      windows/JackCompilerDeps_os.h
  4. +2
    -1
      windows/JackWinTime.c

+ 6
- 0
common/JackGlobals.cpp View File

@@ -62,7 +62,13 @@ void JackGlobals::CheckContext(const char* name)
JackGlobals::fStream = new std::ofstream(provstr, std::ios_base::ate);
JackGlobals::fStream->is_open();
}
#ifdef PTHREAD_WIN32 /* Added by JE - 10-10-2011 */
(*fStream) << "JACK API call : " << name << ", calling thread : " << pthread_self().p << std::endl;
#elif defined(WIN32) && !defined(__CYGWIN__)
(*fStream) << "JACK API call : " << name << ", calling thread : " << GetCurrentThread() << std::endl;
#else
(*fStream) << "JACK API call : " << name << ", calling thread : " << pthread_self() << std::endl;
#endif
}

#else


+ 6
- 0
posix/JackPosixServerLaunch.cpp View File

@@ -17,6 +17,11 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

*/
#if !defined(WIN32) || defined(__CYGWIN__)

#ifdef PTHREAD_WIN32 // Added by JE - 13-02-2010
#include <ptw32/pthread.h> // Makes sure we #include the ptw32 version for
#endif // consistency - even though we won't need it !

#include "JackConstants.h"
#include "JackChannel.h"
@@ -242,3 +247,4 @@ int try_start_server(jack_varargs_t* va, jack_options_t options, jack_status_t*
return 0;
}

#endif // !defined(WIN32) || defined(__CYGWIN__)

+ 2
- 0
windows/JackCompilerDeps_os.h View File

@@ -40,7 +40,9 @@
#endif

#if defined(_MSC_VER) /* Added by JE - 31-01-2012 */
#define vsnprintf _vsnprintf
#define snprintf _snprintf
#define strdup _strdup
#endif

#endif

+ 2
- 1
windows/JackWinTime.c View File

@@ -31,8 +31,9 @@ SERVER_EXPORT void JackSleep(long usec)

SERVER_EXPORT void InitTime()
{
QueryPerformanceFrequency(&_jack_freq);
TIMECAPS caps;

QueryPerformanceFrequency(&_jack_freq);
if (timeGetDevCaps(&caps, sizeof(TIMECAPS)) != TIMERR_NOERROR) {
jack_error("InitTime : could not get timer device");
} else {


Loading…
Cancel
Save