From a55f14fb176978cf41152e094d880ba2984bcc80 Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Thu, 26 Sep 2024 11:18:17 -0700 Subject: [PATCH] update caller's thread changes --- source/event_loop.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/source/event_loop.c b/source/event_loop.c index f3a7197db..ce6e5b995 100644 --- a/source/event_loop.c +++ b/source/event_loop.c @@ -482,21 +482,13 @@ size_t aws_event_loop_get_load_factor(struct aws_event_loop *event_loop) { return aws_atomic_load_int(&event_loop->current_load_factor); } -// As dispatch queue has ARC support, we could directly release the dispatch queue event loop. Disable the -// caller thread validation on dispatch queue. -#ifndef AWS_USE_DISPATCH_QUEUE -# define AWS_EVENT_LOOP_NOT_CALLER_THREAD(eventloop) AWS_ASSERT(!aws_event_loop_thread_is_callers_thread(eventloop)); -#else -# define AWS_EVENT_LOOP_NOT_CALLER_THREAD(eventloop) -#endif - void aws_event_loop_destroy(struct aws_event_loop *event_loop) { if (!event_loop) { return; } AWS_ASSERT(event_loop->vtable && event_loop->vtable->destroy); - AWS_EVENT_LOOP_NOT_CALLER_THREAD(event_loop); + AWS_ASSERT(!aws_event_loop_thread_is_callers_thread(event_loop)); event_loop->vtable->destroy(event_loop); }