Skip to content

volatile declaration #17

Description

@sslupsky

I think I may have found one issue here:

size_t _head;
size_t _numElements;

Do these variables need to be declared "volatile"? When I compiled a sketch without the volatile declaration, the isEmpty() member function always came back false.

Does this suggest _buf should be declared volatile as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions