Skip to content

bug: reference counter increment/decrement not atomic #6

Open
@t-bre

Description

@t-bre

Description

Incrementing and decrementing of the reference count in rtcan_msg_t is not atomic and therefore not thread safe.

Expected Behaviour

Reference count implemented in thread-safe manner.

Additional Notes

  • Could use a semaphore for each RTCAN message, though there is a large memory cost there.
  • Could also have a "reference count mutex" which locks ALL reference counts, this is less costly in terms of memory but could slow things down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriorityHigh priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions