Browse Source

Add old wine bridge code, commented out, in case we need to go back

tags/1.9.8
falkTX 7 years ago
parent
commit
792fac1041
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      source/jackbridge/JackBridge1.cpp

+ 6
- 3
source/jackbridge/JackBridge1.cpp View File

@@ -649,15 +649,18 @@ struct WineBridge {
inst.creator_arg = arg;
inst.creator_handle = ::CreateEventW(nullptr, false, false, nullptr);

#if 0
::CreateThread(nullptr, 0, thread_creator_helper, arg, 0, nullptr);
#else
HANDLE handle = ::CreateThread(nullptr, 0, thread_creator_helper, arg, CREATE_SUSPENDED, nullptr);

if (handle == INVALID_HANDLE_VALUE)
return 1;

// TODO read attrs and decide this
SetThreadPriority(handle, THREAD_PRIORITY_TIME_CRITICAL);
ResumeThread(handle);
::SetThreadPriority(handle, THREAD_PRIORITY_TIME_CRITICAL);
::ResumeThread(handle);
#endif

::WaitForSingleObject(inst.creator_handle, INFINITE);
*thread_id = inst.creator_pthread;


Loading…
Cancel
Save