| 27 | } |
| 28 | |
| 29 | static void |
| 30 | registerNSData() |
| 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 | |
| 44 | static void |
| 45 | sendQueries() |
no test coverage detected