dora icon indicating copy to clipboard operation
dora copied to clipboard

Thread-safety of C node API

Open phil-opp opened this issue 1 year ago • 3 comments

We should clearly document, which parts of the C node API are thread-safe and which not. Also, we should try to make more functions thread-safe, if possible.

Example: The dora_next_event function casts the given context pointer to a &mut DoraContext in Rust, which must be an exclusive reference. So calling the function concurrently with the same context pointer violates this requirement and leads to undefined behavior. However, the underlying flume channel supports receiving elements through shared references, so we might be able to make dora_next_event thread-safe.

phil-opp avatar Jun 07 '24 11:06 phil-opp

Hi there,

I would like to work on it,

@phil-opp please assign me for the contribution.

Thank You.

SanjayUG avatar Mar 19 '25 17:03 SanjayUG

Hi there,

I would like to work on it,

@phil-opp please assign me for the contribution.

Thank You.

you're assigned to it!

Hennzau avatar Mar 19 '25 18:03 Hennzau

@SanjayUG has been automatically unassigned from this stale issue after 2 weeks of inactivity.

github-actions[bot] avatar Apr 03 '25 00:04 github-actions[bot]