From 5e90aecd290f5ae8b4b10367cc0d8995be2a1d9d Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 4 Dec 2010 11:15:20 -0500 Subject: New argument to transactional free functions, to specify whether we are about to retry --- tests/transactional.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/transactional.c (limited to 'tests/transactional.c') diff --git a/tests/transactional.c b/tests/transactional.c new file mode 100644 index 00000000..54e26874 --- /dev/null +++ b/tests/transactional.c @@ -0,0 +1,12 @@ +#include + +#include "/usr/local/include/urweb/urweb.h" + +static void do_free(void *data, int will_retry) { + printf("will_retry = %d\n", will_retry); +} + +uw_unit uw_Transactional_foo(uw_context ctx) { + printf("Registering....\n"); + uw_register_transactional(ctx, NULL, NULL, NULL, do_free); +} -- cgit v1.2.3