LLVM
8.0.1
|
Interface for byte-streams to be used with RPC. More...
#include "llvm/ExecutionEngine/Orc/RawByteChannel.h"
Public Member Functions | |
virtual | ~RawByteChannel ()=default |
virtual Error | readBytes (char *Dst, unsigned Size)=0 |
Read Size bytes from the stream into *Dst. More... | |
virtual Error | appendBytes (const char *Src, unsigned Size)=0 |
Read size bytes from *Src and append them to the stream. More... | |
virtual Error | send ()=0 |
Flush the stream if possible. More... | |
template<typename FunctionIdT , typename SequenceIdT > | |
Error | startSendMessage (const FunctionIdT &FnId, const SequenceIdT &SeqNo) |
Notify the channel that we're starting a message send. More... | |
Error | endSendMessage () |
Notify the channel that we're ending a message send. More... | |
template<typename FunctionIdT , typename SequenceNumberT > | |
Error | startReceiveMessage (FunctionIdT &FnId, SequenceNumberT &SeqNo) |
Notify the channel that we're starting a message receive. More... | |
Error | endReceiveMessage () |
Notify the channel that we're ending a message receive. More... | |
std::mutex & | getReadLock () |
Get the lock for stream reading. More... | |
std::mutex & | getWriteLock () |
Get the lock for stream writing. More... | |
Interface for byte-streams to be used with RPC.
Definition at line 27 of file RawByteChannel.h.
|
virtualdefault |
|
pure virtual |
Read size bytes from *Src and append them to the stream.
|
inline |
Notify the channel that we're ending a message receive.
Unlocks the channel for reading.
Definition at line 73 of file RawByteChannel.h.
References llvm::Error::success().
|
inline |
Notify the channel that we're ending a message send.
Unlocks the channel for writing.
Definition at line 54 of file RawByteChannel.h.
References llvm::Error::success().
|
inline |
Get the lock for stream reading.
Definition at line 79 of file RawByteChannel.h.
|
inline |
Get the lock for stream writing.
Definition at line 82 of file RawByteChannel.h.
Read Size bytes from the stream into *Dst.
|
pure virtual |
Flush the stream if possible.
|
inline |
Notify the channel that we're starting a message receive.
Locks the channel for reading.
Definition at line 62 of file RawByteChannel.h.
|
inline |
Notify the channel that we're starting a message send.
Locks the channel for writing.
Definition at line 43 of file RawByteChannel.h.