forked from vitalif/vitastor
Add stop method stub
parent
71552adf79
commit
e807d7433e
|
@ -194,6 +194,11 @@ void blockstore::loop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool blockstore::stop()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void blockstore::check_wait(blockstore_operation *op)
|
void blockstore::check_wait(blockstore_operation *op)
|
||||||
{
|
{
|
||||||
if (op->wait_for == WAIT_SQE)
|
if (op->wait_for == WAIT_SQE)
|
||||||
|
|
|
@ -311,6 +311,11 @@ public:
|
||||||
void handle_event(ring_data_t* data);
|
void handle_event(ring_data_t* data);
|
||||||
void loop();
|
void loop();
|
||||||
|
|
||||||
|
// Returns true when it's safe to destroy the instance. If destroying the instance
|
||||||
|
// requires to purge some queues, starts that process. Should be called in the event
|
||||||
|
// loop until it returns true.
|
||||||
|
bool stop();
|
||||||
|
|
||||||
// Submission
|
// Submission
|
||||||
int enqueue_op(blockstore_operation *op);
|
int enqueue_op(blockstore_operation *op);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue