reorganize IsStopping() and IsStopped().
This commit is contained in:
parent
cd104d0183
commit
2a7d32bbf0
|
@ -470,30 +470,6 @@ async_start_node_after(uv_work_t *req) {
|
|||
delete req;
|
||||
}
|
||||
|
||||
/**
|
||||
* IsStopping()
|
||||
* bitcoind.stopping()
|
||||
* Check whether bitcoind is in the process of shutting down. This is polled
|
||||
* from javascript.
|
||||
*/
|
||||
|
||||
NAN_METHOD(IsStopping) {
|
||||
NanScope();
|
||||
NanReturnValue(NanNew<Boolean>(ShutdownRequested()));
|
||||
}
|
||||
|
||||
/**
|
||||
* IsStopped()
|
||||
* bitcoind.stopped()
|
||||
* Check whether bitcoind has shutdown completely. This will be polled by
|
||||
* javascript to check whether the libuv event loop is safe to stop.
|
||||
*/
|
||||
|
||||
NAN_METHOD(IsStopped) {
|
||||
NanScope();
|
||||
NanReturnValue(NanNew<Boolean>(shutdownComplete));
|
||||
}
|
||||
|
||||
/**
|
||||
* start_node(void)
|
||||
* Start AppInit2() on a separate thread, wait for
|
||||
|
@ -651,6 +627,30 @@ async_stop_node_after(uv_work_t *req) {
|
|||
delete req;
|
||||
}
|
||||
|
||||
/**
|
||||
* IsStopping()
|
||||
* bitcoind.stopping()
|
||||
* Check whether bitcoind is in the process of shutting down. This is polled
|
||||
* from javascript.
|
||||
*/
|
||||
|
||||
NAN_METHOD(IsStopping) {
|
||||
NanScope();
|
||||
NanReturnValue(NanNew<Boolean>(ShutdownRequested()));
|
||||
}
|
||||
|
||||
/**
|
||||
* IsStopped()
|
||||
* bitcoind.stopped()
|
||||
* Check whether bitcoind has shutdown completely. This will be polled by
|
||||
* javascript to check whether the libuv event loop is safe to stop.
|
||||
*/
|
||||
|
||||
NAN_METHOD(IsStopped) {
|
||||
NanScope();
|
||||
NanReturnValue(NanNew<Boolean>(shutdownComplete));
|
||||
}
|
||||
|
||||
/**
|
||||
* GetBlock()
|
||||
* bitcoind.getBlock(blockHash, callback)
|
||||
|
|
Loading…
Reference in New Issue