Skip to content

DreamConn: do not lock mutex multiple times#2000

Merged
flyinghead merged 1 commit intoflyinghead:devfrom
RikkiGibson:dreamconn-mutex-fix
Jul 7, 2025
Merged

DreamConn: do not lock mutex multiple times#2000
flyinghead merged 1 commit intoflyinghead:devfrom
RikkiGibson:dreamconn-mutex-fix

Conversation

@RikkiGibson
Copy link
Contributor

Extracted from #1989

This fixes a bug where send operations which expect a response would crash Flycast, because it would lock the non-reentrant mutex once in send(txMsg, rxMsg), then call send(msg) which locks the mutex again.

So, for example, VMU graphics/buzzer stuff would work, since no response is expected, but as soon as the game tried to read VMU save data, the emulator would crash.

@flyinghead flyinghead merged commit 4fe2f47 into flyinghead:dev Jul 7, 2025
16 checks passed
@RikkiGibson RikkiGibson deleted the dreamconn-mutex-fix branch July 11, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants