mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -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
@ -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…
Reference in New Issue
Block a user