summaryrefslogtreecommitdiff
path: root/gr-fec/python
diff options
context:
space:
mode:
authortracierenea <tracie.perez@mavs.uta.edu>2016-03-28 20:49:53 -0500
committertracierenea <tracie.perez@mavs.uta.edu>2016-03-28 20:49:53 -0500
commitaef116e28d02a39a7e30e937574cb35876c15b5b (patch)
tree5bde4d8e48c0e147d22c865b7e98b53e2dac8de5 /gr-fec/python
parent7d2c8b16c3764207e9de1190bbfd7e051b8257e4 (diff)
gr-fec: Fix memory allocation issue during encoding.
I think that declaring these temporary matrix variables in the header (and then allocating memory for them in the constructor) is problematic when using parallelism = 1 or 2, as is the case when using the BER Curve Gen./Sink blocks. When parallelism is in effect, there are multiple "sub" flowgraphs in process and therefore multiple, probably very-close-to-simultaneous, calls to encode(). I think what's happening is that these temp matrices are being overwritten in memory by the next call to encode() before the current call to encode() is done with them. I know that such repeated allocate/free calls in the encode() function is not ideal or efficient, I can't think of a better way to do this (for now) and allow for parallelism. With this change, these matrices are no longer member variables of the class, so I've removed the "d_" prefix from the variable names.
Diffstat (limited to 'gr-fec/python')
0 files changed, 0 insertions, 0 deletions