mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
fix jack/pthread windows condition
This commit is contained in:
parent
9ccfb921d4
commit
a68221e323
1 changed files with 3 additions and 3 deletions
|
|
@ -860,7 +860,7 @@ JACKAudioBackend::join_process_threads ()
|
|||
bool
|
||||
JACKAudioBackend::in_process_thread ()
|
||||
{
|
||||
#if (defined COMPILER_MINGW && !defined PTW32_VERSION) || defined __jack_systemdeps_h__
|
||||
#if defined COMPILER_MINGW && (!defined PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
if (_main_thread == GetCurrentThread()) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -873,7 +873,7 @@ JACKAudioBackend::in_process_thread ()
|
|||
for (std::vector<jack_native_thread_t>::const_iterator i = _jack_threads.begin ();
|
||||
i != _jack_threads.end(); i++) {
|
||||
|
||||
#if (defined COMPILER_MINGW && !defined PTW32_VERSION) || defined __jack_systemdeps_h__
|
||||
#if defined COMPILER_MINGW && (!defined PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
if (*i == GetCurrentThread()) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -917,7 +917,7 @@ JACKAudioBackend::process_thread ()
|
|||
/* JACK doesn't do this for us when we use the wait API
|
||||
*/
|
||||
|
||||
#if (defined COMPILER_MINGW && !defined PTW32_VERSION) || defined __jack_systemdeps_h__
|
||||
#if defined COMPILER_MINGW && (!defined PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
_main_thread = GetCurrentThread();
|
||||
#else
|
||||
_main_thread = pthread_self ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue