diff options
author | Jeff Garzik <jgarzik@bitpay.com> | 2013-05-30 08:01:22 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@bitpay.com> | 2013-05-30 08:01:22 -0700 |
commit | 9c95a2e836f7f92b6e446e4dfd3362aa7274bec9 (patch) | |
tree | 3628dc2161b3fd447d23753b0b51892a5900be4f /src/bitcoinrpc.h | |
parent | e2f42142a03fa817a7fe6529fc1d55ef2d016352 (diff) | |
parent | 92f2c1fe0fe2905540b0435188988851145f92be (diff) |
Merge pull request #2625 from gavinandresen/walletlock_asio
Use boost::asio::deadline_timer for walletpassphrase timeout
Diffstat (limited to 'src/bitcoinrpc.h')
-rw-r--r-- | src/bitcoinrpc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h index cf5b137988..279e48aec5 100644 --- a/src/bitcoinrpc.h +++ b/src/bitcoinrpc.h @@ -89,6 +89,12 @@ void RPCTypeCheck(const json_spirit::Array& params, void RPCTypeCheck(const json_spirit::Object& o, const std::map<std::string, json_spirit::Value_type>& typesExpected, bool fAllowNull=false); +/* + Run func nSeconds from now. Uses boost deadline timers. + Overrides previous timer <name> (if any). + */ +void RPCRunLater(const std::string& name, boost::function<void(void)> func, int64 nSeconds); + typedef json_spirit::Value(*rpcfn_type)(const json_spirit::Array& params, bool fHelp); class CRPCCommand |