本文整理汇总了C++中stripedio::close_session方法的典型用法代码示例。如果您正苦于以下问题:C++ stripedio::close_session方法的具体用法?C++ stripedio::close_session怎么用?C++ stripedio::close_session使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类stripedio
的用法示例。
在下文中一共展示了stripedio::close_session方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
~memory_shard() {
if (edata_iosession >= 0) {
if (edgedata != NULL) iomgr->managed_release(edata_iosession, &edgedata);
iomgr->close_session(edata_iosession);
}
if (adj_session >= 0) {
if (adjdata != NULL) iomgr->managed_release(adj_session, &adjdata);
iomgr->close_session(adj_session);
}
}
示例2: releaseblocks
void releaseblocks() {
for(int i=0; i < (int)loadedblocks.size(); i++) {
delete(loadedblocks[i].dblock);
iomgr->managed_release(loadedblocks[i].fd, &loadedblocks[i].data);
iomgr->close_session(loadedblocks[i].fd);
loadedblocks[i].data = NULL;
loadedblocks[i].dblock = NULL;
}
loadedblocks.clear();
}
示例3: logstream
virtual ~vertex_data_store() {
if (!use_mmap) {
iomgr->close_session(filedesc);
iomgr->wait_for_writes();
if (loaded_chunk != NULL) {
iomgr->managed_release(filedesc, &loaded_chunk);
}
} else {
logstream(LOG_INFO) << "Syncing vertex data..." << std::endl;
msync(mmap_file, mmap_length, MS_SYNC);
munmap(mmap_file, mmap_length);
close(filedesc);
}
}
示例4: msync
virtual ~degree_data() {
if (!use_mmap) {
if (loaded_chunk != NULL) {
iomgr->managed_release(filedesc, &loaded_chunk);
}
iomgr->close_session(filedesc);
} else {
if (modified) {
msync(mmap_file, mmap_length, MS_SYNC);
}
munmap(mmap_file, mmap_length);
close(filedesc);
}
}
示例5:
~sliding_shard() {
release_prior_to_offset(true);
if (curblock != NULL) {
curblock->release(iomgr);
delete curblock;
curblock = NULL;
}
if (curadjblock != NULL) {
curadjblock->release(iomgr);
delete curadjblock;
curadjblock = NULL;
}
iomgr->close_session(adjfile_session);
}
示例6:
virtual ~degree_data() {
if (loaded_chunk != NULL) {
iomgr->managed_release(filedesc, &loaded_chunk);
}
iomgr->close_session(filedesc);
}