nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
323 stars 142 forks source link

Lock using TryLock #77

Closed Hadatko closed 2 years ago

Hadatko commented 2 years ago

Signed-off-by: Cervenka Dusan cervenka@acrios.com

Prerequisites

Describe the pull request

I am just curious if there is a reason why not to use trylock in loop for lock implementation. TryLock and Lock looked to me a bit inconsistent.

Type of change

Tests

Hadatko commented 2 years ago

If implementation of TryLock is not an issue then why not use it for Lock implementation?