mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 20:24:13 -04:00
FIFO in and out indices should be volatile.
Later code revealed that the receiving core never notices (reads anew) the _in member variable when waiting for the FIFO to be empty (_in == _out).
This commit is contained in:
parent
7710b2d1fa
commit
8fba47b7d8
1 changed files with 2 additions and 2 deletions
|
@ -201,8 +201,8 @@ private:
|
|||
}
|
||||
|
||||
T _data[size()];
|
||||
size_t _in;
|
||||
size_t _out;
|
||||
volatile size_t _in;
|
||||
volatile size_t _out;
|
||||
};
|
||||
|
||||
#endif/*__FIFO_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue