Skip to content

Commit 7553886

Browse files
committed
dependency updated - yielding renamed to yield
1 parent 5d253e5 commit 7553886

13 files changed

Lines changed: 25 additions & 25 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ find_package(raii QUIET)
2626
if(NOT raii_FOUND)
2727
FetchContent_Declare(raii
2828
URL https://github.com/zelang-dev/c-raii/archive/refs/heads/main.zip
29-
URL_MD5 c08b3e62192669a4ddff97a792c3ae82
29+
URL_MD5 72e937d129cce2ad7873c960b90e3b9a
3030
)
3131
FetchContent_MakeAvailable(raii)
3232
endif()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This library provides **ease of use** *convenience* wrappers for **[libuv](http:
3434

3535
int uv_main(int argc, char **argv) {
3636
printf("Now quitting.\n");
37-
yielding();
37+
yield();
3838

3939
return coro_err_code();
4040
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This library provides **ease of use** *convenience* wrappers for **[libuv](http:
3434

3535
int uv_main(int argc, char **argv) {
3636
printf("Now quitting.\n");
37-
yielding();
37+
yield();
3838

3939
return coro_err_code();
4040
}

examples/helloworld.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
int uv_main(int argc, char **argv) {
55
printf("Now quitting.\n");
6-
yielding();
6+
yield();
77

88
return coro_err_code();
99
}

src/uv_coro.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ static void_t stream_client(params_t args) {
11511151
defer(uv_close_free, client);
11521152

11531153
handlerFunc(client);
1154-
yielding();
1154+
yield();
11551155

11561156
return 0;
11571157
}
@@ -1462,13 +1462,13 @@ static void udp_packet_free(udp_packet_t *handle) {
14621462

14631463
RAII_INLINE string_t udp_get_message(udp_packet_t *udpp) {
14641464
string_t message = udpp->message;
1465-
yielding();
1465+
yield();
14661466
return message;
14671467
}
14681468

14691469
RAII_INLINE unsigned int udp_get_flags(udp_packet_t *udpp) {
14701470
unsigned int flags = udpp->flags;
1471-
yielding();
1471+
yield();
14721472
return flags;
14731473
}
14741474

@@ -1478,7 +1478,7 @@ RAII_INLINE void udp_handler(packet_cb connected, udp_packet_t *client) {
14781478
else
14791479
coro_interrupt_event((func_t)connected, client, dummy_free);
14801480

1481-
yielding();
1481+
yield();
14821482
}
14831483

14841484
int udp_send(uv_udp_t *handle, string_t message, string_t addr) {
@@ -1846,7 +1846,7 @@ static void spawning(void_t uv_args) {
18461846
while (true) {
18471847
if (!coro_terminated(co)) {
18481848
coro_info(co, 1);
1849-
yielding();
1849+
yield();
18501850
} else {
18511851
if (!is_empty(get_coro_data(co))) {
18521852
exiting_cb = (spawn_cb)get_coro_data(co);
@@ -1955,15 +1955,15 @@ int spawn_detach(spawn_t *child) {
19551955
if (child->handle->options->flags == UV_PROCESS_DETACHED && !child->is_detach) {
19561956
uv_unref(handler(&child->process));
19571957
child->is_detach = true;
1958-
yielding();
1958+
yield();
19591959
}
19601960

19611961
return get_coro_err((routine_t *)child->handle->data);
19621962
}
19631963

19641964
RAII_INLINE int spawn_exit(spawn_t *child, spawn_cb exit_func) {
19651965
child->handle->exiting_cb = exit_func;
1966-
yielding();
1966+
yield();
19671967

19681968
return get_coro_err((routine_t *)child->handle->data);
19691969
}

tests/test-dns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TEST(get_addrinfo) {
1616
ASSERT_TRUE(is_type(dns = get_addrinfo(gai, "http", 1, kv(ai_flags, AI_CANONNAME | AI_PASSIVE | AF_INET)), UV_CORO_DNS));
1717
ASSERT_FALSE(result_is_ready(res));
1818
while (!result_is_ready(res))
19-
yielding();
19+
yield();
2020

2121
ASSERT_TRUE(result_is_ready(res));
2222
ASSERT_STR(result_for(res).char_ptr, "addrinfo");
@@ -37,7 +37,7 @@ TEST(get_nameinfo) {
3737
ASSERT_TRUE(is_type(dns = get_nameinfo(gni, 443, 0), UV_CORO_NAME));
3838
ASSERT_FALSE(result_is_ready(res));
3939
while (!result_is_ready(res)) {
40-
yielding();
40+
yield();
4141
}
4242

4343
ASSERT_TRUE(result_is_ready(res));

tests/test-fs.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ TEST(fs_close) {
2424
ASSERT_EQ(0, fs_close(fd));
2525
ASSERT_FALSE(result_is_ready(res));
2626
while (!result_is_ready(res)) {
27-
yielding();
27+
yield();
2828
}
2929

3030
ASSERT_TRUE(result_is_ready(res));
@@ -50,7 +50,7 @@ TEST(fs_write_read) {
5050
ASSERT_EQ(0, fs_close(fd));
5151
ASSERT_EQ(0, fs_unlink(path));
5252
while (!result_is_ready(res)) {
53-
yielding();
53+
yield();
5454
}
5555

5656
ASSERT_TRUE(result_is_ready(res));
@@ -71,7 +71,7 @@ TEST(fs_mkdir) {
7171
ASSERT_EQ(0, fs_mkdir(dir_path, 0));
7272
ASSERT_FALSE(result_is_ready(res));
7373
while (!result_is_ready(res))
74-
yielding();
74+
yield();
7575

7676
ASSERT_TRUE(result_is_ready(res));
7777
ASSERT_STR(result_for(res).char_ptr, "mkdir");
@@ -86,7 +86,7 @@ TEST(fs_rename) {
8686
sleepfor(20);
8787
ASSERT_EQ(0, fs_rmdir(ren_path));
8888
while (!result_is_ready(res))
89-
yielding();
89+
yield();
9090

9191
ASSERT_TRUE(result_is_ready(res));
9292
ASSERT_STR(result_for(res).char_ptr, "rename");
@@ -121,7 +121,7 @@ TEST(fs_scandir) {
121121

122122
ASSERT_EQ(0, fs_rmdir(scan_path));
123123
while (!result_is_ready(res))
124-
yielding();
124+
yield();
125125

126126
ASSERT_TRUE(result_is_ready(res));
127127
ASSERT_STR(result_for(res).char_ptr, "scandir");

tests/test-fs_open.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TEST(fs_open) {
2525
ASSERT_TRUE((fd > 0));
2626
ASSERT_STR("/******hello world******/", str_trim(fs_read(fd, 27), 26));
2727
while (!result_is_ready(res)) {
28-
yielding();
28+
yield();
2929
}
3030

3131
ASSERT_TRUE(result_is_ready(res));

tests/test-fs_watch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ TEST(fs_watch) {
3636
sleepfor(10);
3737
ASSERT_EQ(0, fs_rmdir(watch_path));
3838
while (!result_is_ready(res))
39-
yielding();
39+
yield();
4040

4141
ASSERT_TRUE(result_is_ready(res));
4242
ASSERT_STR(result_for(res).char_ptr, "fs_watch");

tests/test-pipe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ TEST(pipe_listen) {
3535
ASSERT_FALSE(result_is_ready(res));
3636

3737
while (!result_is_ready(res))
38-
yielding();
38+
yield();
3939

4040
ASSERT_TRUE(result_is_ready(res));
4141
ASSERT_STR(result_for(res).char_ptr, "finish");

0 commit comments

Comments
 (0)