HomePhabricator

[libc] Add simple implementations of mtx_lock and mtx_unlock.

Authored by sivachandra on Feb 9 2020, 11:33 PM.

Description

[libc] Add simple implementations of mtx_lock and mtx_unlock.

These functions only support locking and unlocking of plain mutexes.
They will be extended in future changes to handled recursive and timed
mutexes.

Reviewers: phosek

Differential Revision: https://reviews.llvm.org/D74653