Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0a6a576

Browse files
committedOct 16, 2024
deps: update libuv to 1.47.0
nodejs/node#50650
1 parent 59aefe6 commit 0a6a576

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎patches/node/feat_add_uv_loop_interrupt_on_io_change_option_to_uv_loop_configure.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ index bbe56e176db17a502d7f3864ba529212f553590a..b0da9d1cddc69428e9fb3379d1338cf8
278278
-static void thread_main(void* arg) {
279279
- ASSERT_LE(0, uv_barrier_wait(&barrier));
280280
- uv_sleep(250);
281-
- ASSERT_EQ(0, uv_async_send(&async));
281+
- ASSERT_OK(uv_async_send(&async));
282282
-}
283283
+static uv_timer_t main_timer;
284284
+static int main_timer_called;
@@ -333,9 +333,9 @@ index bbe56e176db17a502d7f3864ba529212f553590a..b0da9d1cddc69428e9fb3379d1338cf8
333333
- uv_loop_t* loop;
334334
-
335335
- loop = uv_default_loop();
336-
- ASSERT_EQ(0, uv_async_init(loop, &async, async_cb));
337-
- ASSERT_EQ(0, uv_barrier_init(&barrier, 2));
338-
- ASSERT_EQ(0, uv_thread_create(&thread, thread_main, NULL));
336+
- ASSERT_OK(uv_async_init(loop, &async, async_cb));
337+
- ASSERT_OK(uv_barrier_init(&barrier, 2));
338+
- ASSERT_OK(uv_thread_create(&thread, thread_main, NULL));
339339
- ASSERT_LE(0, uv_barrier_wait(&barrier));
340340
-
341341
- while (uv_loop_alive(loop)) {
@@ -457,7 +457,7 @@ index bbe56e176db17a502d7f3864ba529212f553590a..b0da9d1cddc69428e9fb3379d1338cf8
457457
+ uv_timer_init(&external_loop, &external_timer);
458458
+ uv_timer_start(&external_timer, external_timer_cb, 100, 0);
459459

460-
- ASSERT_EQ(0, uv_thread_join(&thread));
460+
- ASSERT_OK(uv_thread_join(&thread));
461461
- uv_barrier_destroy(&barrier);
462462
+ run_loop();
463463
+ ASSERT_EQ(main_timer_called, 1);

0 commit comments

Comments
 (0)
Please sign in to comment.