loader: On Mac, reserve the process's original thread for the frameworks. (try 3)

Ken Thomases ken at codeweavers.com
Tue Nov 16 01:41:14 CST 2010


(Since try 2: Only terminate main thread if first exec attempt fails.  Retry 
with an exponential-backoff wait for it to exit.)

The frameworks expect the original thread to run its run loop, so input
sources (like distributed notifications) get processed.  For example,
Core Audio on Snow Leopard doesn't track changes in the default ouput
device, such as when headphones are plugged in, without this.
---
  dlls/kernel32/process.c |   64 ++++++++++++++++++++++++-
  libs/wine/Makefile.in   |    2 +-
  libs/wine/loader.c      |  121 +++++++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 185 insertions(+), 2 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-loader-On-Mac-reserve-the-process-s-original-thread-.patch
Type: text/x-patch
Size: 8362 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101116/3ad6cd6b/attachment.bin>


More information about the wine-patches mailing list