Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change how we lock things up ...
[simgrid.git] / src / smpi / include / smpi_file.hpp
index 5a41b65..72efd93 100644 (file)
@@ -21,7 +21,8 @@ class File{
   int flags_;\r
   simgrid::s4u::File* file_;\r
   MPI_Info info_;\r
-  MPI_Offset shared_file_pointer_;\r
+  MPI_Offset* shared_file_pointer_;\r
+  s4u::MutexPtr shared_mutex_;\r
   MPI_Win win_;\r
   char* list_;\r
   public:\r
@@ -34,8 +35,6 @@ class File{
   int sync();\r
   int seek(MPI_Offset offset, int whence);\r
   int seek_shared(MPI_Offset offset, int whence);\r
-  int lock();\r
-  int unlock();\r
   MPI_Info info();\r
   void set_info( MPI_Info info);\r
   static int read(MPI_File fh, void *buf, int count,MPI_Datatype datatype, MPI_Status *status);\r