Skip to content

add mutex::try_lock() and semaphore::try_acquire() - #255

Merged
tzcnt merged 1 commit into
mainfrom
try_lock
Jun 19, 2026
Merged

tzcnt merged 1 commit into
mainfrom
try_lock

Conversation

@tzcnt

@tzcnt tzcnt commented Jun 19, 2026 •

Copy link
Copy Markdown
Owner
  • tmc::mutex::try_lock()
  • tmc::semaphore::try_acquire()

They behave exactly as you would expect. Trivial to implement. Should have been done ages ago.

@tzcnt tzcnt changed the title add mutex::try_lock and semaphore::try_acquire add mutex::try_lock() and semaphore::try_acquire() Jun 19, 2026
@tzcnt
tzcnt merged commit 01ad124 into main Jun 19, 2026
58 checks passed
@tzcnt
tzcnt deleted the try_lock branch June 19, 2026 05:03
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.

1 participant