void BSPLib::Classic::Put( uint32_t pid, const void *src, void *dst, ptrdiff_t offset, size_t nbytes ) // (1) Classic void bsp_get( uint32_t pid, const void *src, void *dst, ptrdiff_t offset, size_t nbytes ) // (2) Legacy
Puts a buffer of size
nbytes from source pointer
src in the thread
pid at offset
offset from destination pointer
- Classic BSP function, this is the interface one should prefer to use over the old BSP interface.
- Legacy BSP function, this interface is included for backwards compatibility with other BSP libraries.
pidThe ID of the processor to communicate with.
srcPointer to the source of the information in the current processor.
offsetOffset from the destination
dstin bytes to start writing from.
dstPointer to the destination for the information in the other processor.
nbytesNumber of bytes to write.
BSPLib::Begin()has been called.
src != nullptr.
dst != nullptr.
BSPLib::Push()has been called on
dstwith at leas size
offset + nbytesin the processor with identifier
BSPLib::Sync()has happened between
BSPLig::Push()and this call.
- Put request has been queued.
- In the next superstep
BSPLib::Sync(), the destination will have the copied value from the source.