[libc] Add memory fences to device-local locking calls
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 22 Jun 2023 16:46:08 +0000 (17:46 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 22 Jun 2023 16:46:09 +0000 (17:46 +0100)
commitba01a2c608cb6272934c41596cb3a8c3915cc514
tree31ee4a01073280ef5d269b52b0ffeefb00e70752
parent9d1bcb70ec8830ad85c0756a03022d3811537284
[libc] Add memory fences to device-local locking calls

This makes the interface less error prone. The acquire was previously
forgotten. Release is currently missing if recv() is the last operation made
before close.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D153571
libc/src/__support/RPC/rpc.h