aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorWilliam Huynh <William.Huynh@arm.com>2025-07-31 12:16:44 +0100
committerGitHub <noreply@github.com>2025-07-31 12:16:44 +0100
commit82bddc3e64e03ec4bb07ad9c757d2a06b5acb0c0 (patch)
treed0967ce3ae91b7c910f16e10f6aae6a71caf38f2 /llvm/lib/Support/VirtualFileSystem.cpp
parentb7d00b827eee8d46be99f7a8b27e33e7a9b2dd86 (diff)
downloadllvm-82bddc3e64e03ec4bb07ad9c757d2a06b5acb0c0.zip
llvm-82bddc3e64e03ec4bb07ad9c757d2a06b5acb0c0.tar.gz
llvm-82bddc3e64e03ec4bb07ad9c757d2a06b5acb0c0.tar.bz2
[libc] Mutex implementation for single-threaded baremetal (#145358)
Part of https://github.com/llvm/llvm-project/issues/145349. Required to allow `atexit` to work. As part of `HermeticTestUtils.cpp`, there is a reference to `atexit()`, which eventually instantiates an instance of a Mutex. Instead of copying the implementation from `libc/src/__support/threads/gpu/mutex.h`, we allow platforms to select an implementation based on configurations, allowing the GPU and single-threaded baremetal platforms to share an implementation. This can be configured or overridden. Later, when the threading API is more complete, we can add an option to support multithreading (or set it as the default), but having single-threading (in tandem) is in line with other libraries for embedded devices.
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions