https://bugs.winehq.org/show_bug.cgi?id=30557
--- Comment #123 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Andrew Eikum from comment #121)
Created attachment 53326 [details] Another marshalling approach without new ntdll export
Here's another take, this time moving the pthread specific stuff into winegstreamer. This means we don't need to add another ntdll export, which I think will be difficult to get accepted upstream. Unless I get review feedback or hear about something broken, this is probably what I will submit upstream soon.
No objections here. With this new approach its more difficult to ensure that mark_wine_thread() is called on each thread, but it should still be fine. Also, depending on the OS there might be more ways to optimize it further (for example, using a futex instead of lock/condvar), but its good to start with a general implementation. If necessary, such optimizations can still be added later.