⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file.cc

📁 MPI stands for the Message Passing Interface. Written by the MPI Forum (a large committee comprising
💻 CC
字号:
// -*- c++ -*-// // Copyright (c) 2006      Los Alamos National Security, LLC.  All rights//                         reserved. // $COPYRIGHT$// // Additional copyrights may follow// // $HEADER$//// do not include ompi_config.h because it kills the free/malloc defines#include "mpi.h"#include "ompi/mpi/cxx/mpicxx.h"#include "opal/threads/mutex.h"void MPI::File::Close() {    MPI_File save = mpi_file;    (void) MPI_File_close(&mpi_file);    OPAL_THREAD_LOCK(MPI::mpi_map_mutex);    MPI::File::mpi_file_map.erase(save);    OPAL_THREAD_UNLOCK(MPI::mpi_map_mutex);}  voidMPI::File::Set_errhandler(const MPI::Errhandler& errhandler){    my_errhandler = (MPI::Errhandler *)&errhandler;    OPAL_THREAD_LOCK(MPI::mpi_map_mutex);    MPI::File::mpi_file_map[mpi_file] = this;    OPAL_THREAD_UNLOCK(MPI::mpi_map_mutex);    (void)MPI_File_set_errhandler(mpi_file, errhandler);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -