FEX icon indicating copy to clipboard operation
FEX copied to clipboard

std::shared_mutexes can't be safelly locked across forks

Open skmp opened this issue 2 years ago • 0 comments

I run into this as part of #1558.

If they are locked before fork, then after fork they may or may not lockup on next lock, semi-randomly.

Looks like we need to roll our own shared_mutex implementation.

In general in need a gameplan for fork safety of FEXCore / Syscalls code

skmp avatar May 04 '22 13:05 skmp