From: ÍõÀÚ (brytwang_at_gmail_dot_com)
Date: Wed Dec 12 2007 - 18:26:34 PST
Dear Sir , Thank you for your help . I want to know can we explicitly checkpoint and restart at any time in my program , to explain my meaning clearly , I offer an example as follows : example( maybe wrong): statements ; statements; cr_client_id_t cr; . . . cr_enter_cs(cr); //enter a critical section cr_checkpoint(0); //place1 , I want to set the first checkpoint here cr_leave_cs(cr); statements; //place2 . . . cr_enter_cs(cr); cr_checkpoint(0); //place3, the second checkpoint I want to set here cr_leave_cs(cr); statements; //place4 . . . Suppose this program is attacked (or other unexpected ) during its execution , but I have set two checkpoints above , so there is no need to restart my program at its beginning . If I can know at place2(or place4) the program is attacked , so I want to restart it at place1(or place3) , can we explicitly restart my program at place1(or place3) ? If BLCR supports , would you please offer me an example ? Thanks £¡ Daniel.