[ Version ( since = "0.10.15" ) ]
public bool pause_for_process (string miner, string reason, out uint32 cookie)
This function operates exactly the same way as pause with the exception that if the calling process dies, the pause is resumed.
This API is useful for cases where the calling process has a risk of crashing without resuming the pause.
NOTE: If you call unref on the this before you intend to resume the pause and it finalizes, it will automatically resume.
this |
a MinerManager. |
miner |
miner reference |
reason |
reason to pause |
cookie |
return location for the pause cookie ID |
true if the miner was paused successfully, otherwise false. |