1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

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
Notes: sideshowbarker 2024-07-17 07:25:39 +09:00
29 changed files with 60 additions and 59 deletions

View file

@ -11,7 +11,7 @@
TEST_CASE(deferred_invoke)
{
Core::EventLoop event_loop;
IGNORE_USE_IN_ESCAPING_LAMBDA Core::EventLoop event_loop;
auto reaper = Core::Timer::create_single_shot(250, [] {
warnln("I waited for the deferred_invoke to happen, but it never did!");
VERIFY_NOT_REACHED();

View file

@ -155,7 +155,7 @@ TEST_CASE(threaded_promise_resolved_later)
{
Core::EventLoop loop;
bool unblock_thread = false;
IGNORE_USE_IN_ESCAPING_LAMBDA bool unblock_thread = false;
bool resolved = false;
bool rejected = true;
Optional<pthread_t> thread_id;

View file

@ -43,7 +43,7 @@ TEST_CASE(simple_dequeue)
// There is one parallel consumer, but nobody is producing at the same time.
TEST_CASE(simple_multithread)
{
auto queue = MUST(TestQueue::create());
IGNORE_USE_IN_ESCAPING_LAMBDA auto queue = MUST(TestQueue::create());
auto const test_count = 10;
for (int i = 0; i < test_count; ++i)
@ -73,11 +73,11 @@ TEST_CASE(simple_multithread)
// There is one parallel consumer and one parallel producer.
TEST_CASE(producer_consumer_multithread)
{
auto queue = MUST(TestQueue::create());
IGNORE_USE_IN_ESCAPING_LAMBDA auto queue = MUST(TestQueue::create());
// Ensure that we have the possibility of filling the queue up.
auto const test_count = queue.size() * 4;
Atomic<bool> other_thread_running { false };
IGNORE_USE_IN_ESCAPING_LAMBDA Atomic<bool> other_thread_running { false };
auto second_thread = Threading::Thread::construct([&queue, &other_thread_running]() {
auto copied_queue = queue;