Skip to content
Snippets Groups Projects
Commit 10a2ae37 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Clear only first header in RMA buffer.

parent 319144b6
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,15 @@ modelWinFlushBuffer(size_t streamIdx)
&& openStreams.entries[streamIdx] != CDI_UNDEFID
&& txWin != NULL
&& txWin[streamIdx].buffer != NULL);
memset(txWin[streamIdx].buffer, 0, txWin[streamIdx].size);
#if 0
/* for debugging purposes it might be smart to set the whole buffer
* to 0 */
size_t clearSize = txWin[streamIdx].size;
memset(txWin[streamIdx].buffer, 0, clearSize);
#else
/* but normally, setting the first header record to zero will
* suffice (see below) */
#endif
txWin[streamIdx].head = txWin[streamIdx].buffer
+ (size_t)txWin[streamIdx].dictSize * sizeof (struct winHeaderEntry);
txWin[streamIdx].refuseFuncCall = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment