Userland: Add ESCAPING annotations to a bunch of places

This isn't comprehensive; just a result of a simple grep search.
This commit is contained in:
Matthew Olsson
2024-05-17 17:14:06 -07:00
committed by Andrew Kaster
parent e0d6afbabe
commit a98ad191c7
29 changed files with 60 additions and 59 deletions

View File

@@ -27,7 +27,7 @@ static void sleep_until_thread_exits(Threading::Thread const& thread)
TEST_CASE(threads_can_detach)
{
Atomic<int> should_be_42 = 0;
IGNORE_USE_IN_ESCAPING_LAMBDA Atomic<int> should_be_42 = 0;
auto thread = Threading::Thread::construct([&should_be_42]() {
usleep(10 * 1000);
@@ -43,7 +43,7 @@ TEST_CASE(threads_can_detach)
TEST_CASE(detached_threads_do_not_need_to_be_joined)
{
Atomic<bool> should_exit { false };
IGNORE_USE_IN_ESCAPING_LAMBDA Atomic<bool> should_exit { false };
auto thread = Threading::Thread::construct([&]() {
while (!should_exit.load())
usleep(10 * 1000);