Skip to content

Commit

Permalink
update vcc and related hash
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Dec 17, 2024
1 parent e1d7513 commit 98c558e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/vcc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ NO_CHANGE_FILE=source/linux/epoll_event_loop.c
$(VCC) $(VCC_ARGS) lifecycle.c /f:s_stop_task /f:s_stop /f:s_wait_for_stop_completion /f:s_run
$(VCC) $(VCC_ARGS) main_loop.c /f:s_on_tasks_to_schedule /f:s_main_loop
$(VCC) $(VCC_ARGS) new_destroy.c /f:aws_event_loop_new_default
$(VCC) $(VCC_ARGS) new_destroy.c /f:aws_event_loop_new_default_with_options /f:s_destroy /p:"-DUSE_EFD=0"
$(VCC) $(VCC_ARGS) new_destroy.c /f:aws_event_loop_new_default_with_options /f:s_destroy /p:"-DUSE_EFD=1"
$(VCC) $(VCC_ARGS) new_destroy.c /f:aws_event_loop_new_with_epoll /f:s_destroy /p:"-DUSE_EFD=0"
$(VCC) $(VCC_ARGS) new_destroy.c /f:aws_event_loop_new_with_epoll /f:s_destroy /p:"-DUSE_EFD=1"
$(VCC) $(VCC_ARGS) client.c /f:test_new_destroy /f:test_subscribe_unsubscribe

.phony: all
Expand Down
6 changes: 3 additions & 3 deletions tests/vcc/new_destroy.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ struct aws_event_loop *aws_event_loop_new_default(struct aws_allocator *alloc, a

/* VCC change: rewrite return to allow for unwrap */
#if 0
return aws_event_loop_new_default_with_options(alloc, &options);
return aws_event_loop_new_with_epoll(alloc, &options);
#else
struct aws_event_loop *r = aws_event_loop_new_default_with_options(alloc, &options, _(out c_mutex));
struct aws_event_loop *r = aws_event_loop_new_with_epoll(alloc, &options, _(out c_mutex));
_(unwrap(&options))
return r;
#endif
}

struct aws_event_loop *aws_event_loop_new_default_with_options(
struct aws_event_loop *aws_event_loop_new_with_epoll(
struct aws_allocator *alloc,
const struct aws_event_loop_options *options
_(out \claim(c_mutex))
Expand Down
2 changes: 1 addition & 1 deletion tests/vcc/preamble.h
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ struct aws_event_loop *aws_event_loop_new_default(
\fresh(c_mutex) && \wrapped0(c_mutex) && \claims_object(c_mutex, &(epoll_loop_of(\result)->task_pre_queue_mutex))))
;

struct aws_event_loop *aws_event_loop_new_default_with_options(
struct aws_event_loop *aws_event_loop_new_with_epoll(
struct aws_allocator *alloc,
const struct aws_event_loop_options *options
_(out \claim(c_mutex))
Expand Down

0 comments on commit 98c558e

Please sign in to comment.