MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_SendChildHeartbeat

Function RM_SendChildHeartbeat

src/module.cpp:8078–8080  ·  view source on GitHub ↗

The module is advised to call this function from the fork child once in a while, * so that it can report progress and COW memory to the parent which will be * reported in INFO. * The `progress` argument should between 0 and 1, or -1 when not available. */

Source from the content-addressed store, hash-verified

8076 * reported in INFO.
8077 * The `progress` argument should between 0 and 1, or -1 when not available. */
8078void RM_SendChildHeartbeat(double progress) {
8079 sendChildInfoGeneric(CHILD_INFO_TYPE_CURRENT_INFO, 0, progress, "Module fork");
8080}
8081
8082/* Call from the child process when you want to terminate it.
8083 * retcode will be provided to the done handler executed on the parent process.

Callers

nothing calls this directly

Calls 1

sendChildInfoGenericFunction · 0.85

Tested by

no test coverage detected