Skip to content

refactor: remove AutoCrit and CritSec#12

Merged
Electr0Gunner merged 1 commit into
LawnProject:mainfrom
Pistonight:refactor/scopelock
Jun 21, 2026
Merged

refactor: remove AutoCrit and CritSec#12
Electr0Gunner merged 1 commit into
LawnProject:mainfrom
Pistonight:refactor/scopelock

Conversation

@Pistonight

Copy link
Copy Markdown
Contributor

There's no point wrapping c++ standard library...

Also changed most of mutex from recursive_mutex to just mutex. The only exception is the one in renderer as I can't easily prove it's not used recursively.

And since none of the callsites needed to move the lock, changed unique_lock to scoped_lock

SexyAppBase::mCritSect appears unused so I removed it

@Electr0Gunner

Copy link
Copy Markdown
Member

I guess it makes sense to remove AutoCrit and CritSect.
and since Lawn/PvZ doesn't use a mutex directly, we can remove it without affecting the users

@Electr0Gunner Electr0Gunner merged commit e27e93e into LawnProject:main Jun 21, 2026
4 checks passed
@Pistonight Pistonight deleted the refactor/scopelock branch June 21, 2026 16:09
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