PPL Logo

Ck::IO::impl::WriteSession Class Reference

Inheritance diagram for Ck::IO::impl::WriteSession:

Inheritance graph
[legend]
Collaboration diagram for Ck::IO::impl::WriteSession:

Collaboration graph
[legend]

Public Member Functions

 WriteSession (FileToken file_, size_t offset_, size_t bytes_)
 WriteSession (CkMigrateMessage *m)
void forwardData (const char *data, size_t bytes, size_t offset)
void syncData ()
void flushBuffer (buffer &buf, size_t bufferOffset)

Private Attributes

const FileInfofile
size_t sessionOffset
size_t myOffset
size_t sessionBytes
size_t myBytes
size_t myBytesWritten
FileToken token
map< size_t, struct bufferbufferMap

Data Structures

struct  buffer

Detailed Description

Definition at line 271 of file ckio.C.


Constructor & Destructor Documentation

Ck::IO::impl::WriteSession::WriteSession ( FileToken  file_,
size_t  offset_,
size_t  bytes_ 
) [inline]

Definition at line 303 of file ckio.C.

References Ck::IO::impl::FileInfo::fd, file, myBytes, myOffset, sessionBytes, and sessionOffset.

Ck::IO::impl::WriteSession::WriteSession ( CkMigrateMessage m  )  [inline]

Definition at line 318 of file ckio.C.


Member Function Documentation

void Ck::IO::impl::WriteSession::forwardData ( const char *  data,
size_t  bytes,
size_t  offset 
) [inline]

void Ck::IO::impl::WriteSession::syncData (  )  [inline]

Definition at line 352 of file ckio.C.

References bufferMap, Ck::IO::impl::director, Ck::IO::impl::fatalError(), Ck::IO::impl::FileInfo::fd, file, fsync(), CkReduction::max_int, Ck::IO::impl::FileInfo::name, status, and token.

Here is the call graph for this function:

void Ck::IO::impl::WriteSession::flushBuffer ( buffer buf,
size_t  bufferOffset 
) [inline]

Definition at line 382 of file ckio.C.

References Ck::IO::impl::WriteSession::buffer::array, Ck::IO::impl::WriteSession::buffer::bytes_filled_so_far, CmiPwrite(), PUP::d, Ck::IO::impl::fatalError(), Ck::IO::impl::FileInfo::fd, file, PUP::l, myBytesWritten, and Ck::IO::impl::FileInfo::name.

Referenced by forwardData().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Definition at line 272 of file ckio.C.

Referenced by flushBuffer(), forwardData(), syncData(), and WriteSession().

Definition at line 273 of file ckio.C.

Referenced by WriteSession().

Definition at line 273 of file ckio.C.

Referenced by forwardData(), and WriteSession().

Definition at line 274 of file ckio.C.

Referenced by WriteSession().

Definition at line 274 of file ckio.C.

Referenced by forwardData(), and WriteSession().

Definition at line 274 of file ckio.C.

Referenced by flushBuffer(), and forwardData().

Definition at line 275 of file ckio.C.

Referenced by syncData().

Definition at line 300 of file ckio.C.

Referenced by forwardData(), and syncData().


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:33:40 2020 for Charm++ by  doxygen 1.5.5