I also updated the https://gitlab.winehq.org/rbernon/wine/-/commits/mr/shared-memories branch with all the commits rebased and with the new mapping scheme. The thread input / foreground thread input mappings have been reworked and I think it's much nicer now.