MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / registerNSData

Function registerNSData

test/plugin/example-db/example-db.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static void
30registerNSData()
31{
32 /* Although one process resumes late, they will still all synchronize. */
33 if (dmtcp::string(mystruct.key) == "1") {
34 sleep(1);
35 }
36 printf("The plugin is now resuming or restarting from checkpointing.\n");
37 printf(" Data to be sent: My (key, pid) is: (%s, %ld).\n",
38 mystruct.key, (long)mystruct.pid);
39 dmtcp::kvdb::set64("ex-db", mystruct.key, mystruct.pid);
40 printf(" Data sent: My (key, pid) is: (%s, %ld).\n",
41 mystruct.key, (long)mystruct.pid);
42}
43
44static void
45sendQueries()

Callers 2

example_db_event_hookFunction · 0.85
registerNSDataMethod · 0.85

Calls 2

set64Function · 0.85
sleepFunction · 0.50

Tested by

no test coverage detected