Stop Asynchronous IO.
MCO_RET mco_aio_stop( void );
void | No arguments |
This function terminates AIO. It should be called when persistent database writes are finished if AIO is enabled.
MCO_S_OK | AIO was successfully terminated |
Application snippet: const char * dbname = "SimpleDb"; int main(int argc, char* argv[]) { mco_db_h db; MCO_RET rc; mco_device_t dev; mco_db_params_t db_params; if( (rc = mco_runtime_start()) != MCO_S_OK) exit(-1); ... rc = mco_aio_start( 20000, 2 ); rc = mco_db_open_dev( dbname, simpledb_get_dictionary(), &dev, 1, &db_params); ... rc = mco_db_connect(dbname, &db); ... mco_aio_stop(); }