Skip to content

Allow cuddling mutex locking/unlocking#219

Merged
bombsimon merged 5 commits intomainfrom
lock-unlock
Jan 6, 2026
Merged

Allow cuddling mutex locking/unlocking#219
bombsimon merged 5 commits intomainfrom
lock-unlock

Conversation

@bombsimon
Copy link
Copy Markdown
Owner

Restore removed support to more tightly cuddle mutex locking and unlocking. This is no longer configurable and hard coded to the selected few defaults from before.

It is not limited to a set number of statements between and it is not restricted to specific type of statements, basically anything can be cuddled below Lock and the statement calling Unlock can be cuddled with anything.

Fixes #218

Restore removed support to more tightly cuddle mutex locking and
unlocking. This is no longer configurable and hard coded to the selected
few defaults from before.

It is not limited to a set number of statements between and it is not
restricted to specific type of statements, basically anything can be
cuddled below `Lock` and the statement calling `Unlock` can be cuddled
with anything.

Fixes #218
@coveralls
Copy link
Copy Markdown

coveralls commented Jan 5, 2026

Coverage Status

coverage: 91.751% (+0.1%) from 91.648%
when pulling c337e25 on lock-unlock
into 861a8b8 on main.

@bombsimon bombsimon merged commit e696bdb into main Jan 6, 2026
5 checks passed
@bombsimon bombsimon deleted the lock-unlock branch January 6, 2026 10:57
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.

Restore mutex Lock/Unlock cuddling support in v5

2 participants