Skip to content

Commit

Permalink
guest_c: bump wasi:io/poll to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Apr 22, 2024
1 parent 977c537 commit 2af5150
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions guest_c/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,15 @@ exports_wasi_sensor_interface_main()

wasi_buffer_pool_buffer_pool_borrow_pool_t borrowed_pool =
wasi_buffer_pool_buffer_pool_borrow_pool(pool);
wasi_io_0_2_0_rc_2023_11_10_poll_own_pollable_t poll =
wasi_io_0_2_0_poll_own_pollable_t poll =
wasi_buffer_pool_buffer_pool_method_pool_subscribe(
borrowed_pool);
wasi_io_0_2_0_rc_2023_11_10_poll_borrow_pollable_t borrowed_poll =
wasi_io_0_2_0_rc_2023_11_10_poll_borrow_pollable(poll);
wasi_io_0_2_0_poll_borrow_pollable_t borrowed_poll =
wasi_io_0_2_0_poll_borrow_pollable(poll);
int n = 60;
int i;
for (i = 0; i < n;) {
wasi_io_0_2_0_rc_2023_11_10_poll_method_pollable_block(
wasi_io_0_2_0_poll_method_pollable_block(
borrowed_poll);
wasi_buffer_pool_buffer_pool_list_frame_info_t frames;
if (!wasi_buffer_pool_buffer_pool_method_pool_read_frames(
Expand Down Expand Up @@ -354,7 +354,7 @@ exports_wasi_sensor_interface_main()
stats.enqueued, stats.dequeued, stats.dropped);

fprintf(stderr, "cleaning up\n");
wasi_io_0_2_0_rc_2023_11_10_poll_pollable_drop_own(poll);
wasi_io_0_2_0_poll_pollable_drop_own(poll);
wasi_sensor_sensor_device_drop_own(device);
wasi_buffer_pool_buffer_pool_pool_drop_own(pool);

Expand Down

0 comments on commit 2af5150

Please sign in to comment.